Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
73de9874
authored
Mar 05, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 front 环境配置,用于前端同学直接启动
parent
aa6c50b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
.env.front
+19
-0
package.json
+1
-0
No files found.
.env.front
0 → 100644
View file @
73de9874
# 本地开发环境
NODE_ENV=development
VITE_DEV=true
# 请求路径
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
# 上传路径
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=/dev-api
# 接口地址
VITE_API_URL=/admin-api
# 打包路径
VITE_BASE_PATH=/
package.json
View file @
73de9874
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"scripts"
:
{
"scripts"
:
{
"i"
:
"pnpm install"
,
"i"
:
"pnpm install"
,
"dev"
:
"vite --mode base"
,
"dev"
:
"vite --mode base"
,
"front"
:
"vite --mode front"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"build:pro"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode pro"
,
"build:pro"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode pro"
,
"build:dev"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev"
,
"build:dev"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev"
,
...
...
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