Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
5acda804
Commit
5acda804
authored
Nov 18, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 环境变量
parent
f7e06658
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
config.ts
config/config.ts
+10
-0
No files found.
config/config.ts
View file @
5acda804
...
...
@@ -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
:
'瓴犀平台后台'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment