Commit 5acda804 authored by 前端-许佳敏's avatar 前端-许佳敏

chore: 环境变量

parent f7e06658
......@@ -9,6 +9,16 @@ import routes from './routes/index'
import proxy from './proxy'
import CaseSensitivePathsWebpackPlugins from 'case-sensitive-paths-webpack-plugin'
import theme from './theme.config'
import envValue from '../env'
import { setEnv, getEnv } from '../scripts/utils/envTool.js'
// 构建时带上的环境变量
const PRO_ENV = process.env.PRO_ENV
if (!PRO_ENV) {
throw `请传入PRO_ENV`
}
setEnv(getEnv(envValue))
export default defineConfig({
title: '瓴犀平台后台',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment