Skip to main content
February 27, 2026
Question

1Password Environments - Vite workaround

  • February 27, 2026
  • 0 replies
  • 89 views

Hi all,

We have received some feedback that people are having trouble with 1Password Environments and using Vite.  While we polish of a fix, here is a workaround you can use.

Create an entry in your vite.config.ts to ignore the .env files so that it stops constantly trying to reach from the file. (and restarting).

import { defineConfig } from 'vite'

export default defineConfig({
  server: {
    watch: {
      ignored: ['**/.env', '**/.env.*']
    }
  }
})

Thanks for the feedback and keep it coming!
Phil & Team!