Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
王蔡翾
rz-GB-web
Commits
6b7eef03
Commit
6b7eef03
authored
Oct 29, 2026
by
王蔡翾
Browse files
按照原型还原
parent
12121653
Changes
41
Show whitespace changes
Inline
Side-by-side
vite.config.ts
View file @
6b7eef03
...
@@ -9,6 +9,8 @@ export default defineConfig({
...
@@ -9,6 +9,8 @@ export default defineConfig({
plugins
:
[
inspectAttr
(),
react
()],
plugins
:
[
inspectAttr
(),
react
()],
server
:
{
server
:
{
port
:
3000
,
port
:
3000
,
// 浏览器只请求同源 /api;部署时由反向代理保留相同路径与 Cookie。
proxy
:
{
'
/api
'
:
{
target
:
process
.
env
.
API_PROXY_TARGET
||
'
http://127.0.0.1:8240
'
,
changeOrigin
:
false
}
},
},
},
resolve
:
{
resolve
:
{
alias
:
{
alias
:
{
...
...
Prev
1
2
3
Next
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