# JUST A FLAG For 开发环境
ENV = 'development'# API BASE URL
VITE_APP_BASE_API=https://epro.test.viewchain.net/epro # OK
VITE_APP_TITLE=Leslie Release Tool # OK
VITE_APP_TEST_ATTR=Leslie Release Tool # OK
VITE_TEST_ATTR=Leslie Release Tool # OK
TEST_ATTR=Leslie ATTR # NOT
必须以VITE_开头,配置完之后需要重新启动项目或者打包项目
🌈 .dot files for different env - Typescript IntelliSense
To achieve, you can create an env.d.ts in src directory, then augment ImportMetaEnv like this:
interfaceImportMetaEnv{VITE_APP_TITLE: string// more env variables...}