Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
10f2f345
authored
2026-04-18 12:04:16 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
731040c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
vite.config.js
vite.config.js
View file @
10f2f34
...
...
@@ -24,17 +24,17 @@ export default defineConfig(({ mode, command }) => {
// vite 相关配置
server
:
{
port
:
80
,
host
:
true
,
host
:
'0.0.0.0'
,
open
:
true
,
forceHttps
:
false
,
proxy
:
{
// https://cn.vitejs.dev/config/#server-proxy
'/
dev
-api'
:
{
'/
prod
-api'
:
{
target
:
'http://localhost:8082/'
,
// target: 'http://470k2111t0.zicp.vip/',
changeOrigin
:
true
,
secure
:
false
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev
-api/
,
''
)
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
prod
-api/
,
''
)
}
}
},
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment