Skip to main content
wong2
Feb 25, 2026 9:10 AM UTC
Question

1Password keeps updating .env file

1Password Environment is really cool! I'm excited to use it. But I'm running into a problem: 1Password keeps updating the mounted .env file, even when the content hasn't changed. This causes our development server (Vite) to constantly detect file changes and restart.

3 replies

Feb 26, 2026 9:32 PM UTC

Hi @wong2 ,

Were you able to get this sorted out, or are you still having troubles with it?  

Thanks!
Phil

wong2
wong2Author
Feb 27, 2026 3:08 AM UTC

No, I'm still having troubles with it. And I don't think there's much I can do without 1Password improve this.

Feb 27, 2026 8:45 PM UTC

Hi @wong2 ,

Hot off the press (from internal folks here at 1Password, thanks @sid ), please give this workaround a try while we get a polished fix.

Could you try adding something like this in your vite.config.ts:

import { defineConfig } from 'vite'

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

Thanks!
Phil