src/env.d.ts
@@ -1,9 +1,15 @@ // Environment variable definition // https://cn.vitejs.dev/guide/env-and-mode.html#env-files /// <reference types="vite/client" /> interface ImportMetaEnv { VITE_APP_ENVIRONMENT: 'DEV' | 'STAG' | 'UAT' | 'PROD', // api gateway VITE_APP_APIGATEWAY_BACKEND_HOST: string VITE_API_URL: string VITE_WS_API_URL: string // More environment variables... } interface ImportMeta { readonly env: ImportMetaEnv }