chore: 增加环境配置
This commit is contained in:
@@ -35,7 +35,7 @@ const config = createViteConfig({
|
||||
export default defineConfig(({ mode }) => {
|
||||
console.log('mode', mode);
|
||||
// 加载环境变量(支持 .env.development/.env.production)
|
||||
const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_']);
|
||||
const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_', 'Y_CODE_']);
|
||||
return {
|
||||
...config,
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user