Forum Discussion

1P_Phil's avatar
1P_Phil
Icon for Moderator rankModerator
2 days ago

1Password Environments - Vite workaround

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!

No RepliesBe the first to reply