remix-run / remix-website

347 stars 79 forks source link

Vite config has hard-coded the .env file to the example file #171

Closed fernandocanizo closed 9 months ago

fernandocanizo commented 9 months ago

File vitest.config.mts is the only place where dotenv is used and this is the code excerpt:

let env = dotenv.parse(
  fs.readFileSync(path.resolve(process.cwd(), ".env.example")),
);

As you can see, it has hardcoded the file to .env.example instead of reading from .env.

brookslybrand commented 9 months ago

Hey @fernandocanizo, as mentioned in #170, vitest.config.mts is for the testing framework, it's no the same thing as vite.config.mts, so it's fine that it's appropriate that it uses .env.example