Hi,
I have try the new feature to add a custom file.
The doc indicate
ValidateEnv({ envFile: 'config/env' }
when it is actually
ValidateEnv({ configFile: 'config/env' })
.
Plus when the config file is not found, we get this error :
$ vite dev
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
error when starting dev server:
Error: Failed to validate environment variables :
[configFile]:
validator is not a function
Which state that configFIle
is an expected env variable, not an options for the env path.
I would expect something like this instead :
Error : `config/env` file not found
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too