Skip to content

Commit 2cab128

Browse files
committed
Add ValidateEnv command to vite config
1 parent 4538d32 commit 2cab128

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import { defineConfig } from 'vite'
44
import vue from '@vitejs/plugin-vue'
55
import vueJsx from '@vitejs/plugin-vue-jsx'
66
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
7+
import { ValidateEnv } from '@togglecorp/vite-plugin-validate-env';
78

89
// https://vitejs.dev/config/
910
export default defineConfig({
1011
base: './',
1112
plugins: [
13+
ValidateEnv({ configFile: 'env' }),
1214
vue(),
1315
vueJsx(),
1416
VueI18nPlugin({

0 commit comments

Comments
 (0)