Browse Source

target

厅长信箱
laishajiang 2 years ago
parent
commit
9480f45df3
  1. 2
      vite.config.js

2
vite.config.js

@ -49,7 +49,7 @@ export default defineConfig({
'/api': { '/api': {
// https://mailbox.biutag.com/api // https://mailbox.biutag.com/api
// http://127.0.0.1:8080 // http://127.0.0.1:8080
target: 'https://mailbox.biutag.com/api', target: 'http://127.0.0.1:8080',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, '') rewrite: (p) => p.replace(/^\/api/, '')
} }

Loading…
Cancel
Save