Skip to content

Commit 0d341b5

Browse files
committed
chore: update to latest vite-plugin-validate-env
1 parent 634f4cf commit 0d341b5

File tree

3 files changed

+48
-78
lines changed

3 files changed

+48
-78
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@eslint/eslintrc": "^3.1.0",
6363
"@eslint/js": "^9.20.0",
6464
"@eslint/json": "^0.5.0",
65-
"@julr/vite-plugin-validate-env": "^1.0.1",
65+
"@julr/vite-plugin-validate-env": "^2.2.0",
6666
"@types/file-saver": "^2.0.5",
6767
"@types/mapbox-gl": "^1.13.0",
6868
"@types/node": "^20.11.6",

app/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { VitePluginRadar } from 'vite-plugin-radar';
1111
import svgr from 'vite-plugin-svgr';
1212
import pkg from './package.json';
1313

14-
import envConfig from './env';
15-
1614
/* Get commit hash */
1715
const commitHash = execSync('git rev-parse --short HEAD').toString();
1816

@@ -45,7 +43,9 @@ export default defineConfig(({ mode }) => {
4543
reactSwc(),
4644
tsconfigPaths(),
4745
webfontDownload(),
48-
validateEnv(envConfig),
46+
validateEnv({
47+
configFile: 'env',
48+
}),
4949
isProd ? compression() : undefined,
5050
isProd ? visualizer({ sourcemap: true }) : undefined,
5151
VitePluginRadar({

pnpm-lock.yaml

Lines changed: 44 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)