fix: NODE_ENV=production is not supported in the .env file

This commit is contained in:
pany
2023-04-11 12:33:03 +08:00
parent 33ec2e6ec2
commit 2be53ddfc2
4 changed files with 7 additions and 12 deletions

4
types/env.d.ts vendored
View File

@@ -6,3 +6,7 @@ declare interface ImportMetaEnv {
readonly VITE_ROUTER_HISTORY: "hash" | "html5"
readonly VITE_PUBLIC_PATH: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}