feat:额外产物添加
This commit is contained in:
@@ -14,6 +14,7 @@ const pathSrc = resolve(__dirname, 'src')
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: '',
|
||||
plugins: [
|
||||
vue(),
|
||||
tailwindcss(),
|
||||
@@ -46,12 +47,12 @@ export default defineConfig({
|
||||
'/api': {
|
||||
changeOrigin: true,
|
||||
// 接口地址
|
||||
// target: 'http://82.157.183.212:21092',
|
||||
target: 'http://localhost:8000',
|
||||
rewrite: (path: string) => path.replace(/^\/api/, ''),
|
||||
configure: (proxy, options) => {
|
||||
console.log('Proxy configured:', options)
|
||||
},
|
||||
target: 'http://82.157.183.212:21092',
|
||||
// target: 'http://localhost:8000',
|
||||
// rewrite: (path: string) => path.replace(/^\/api/, ''),
|
||||
// configure: (proxy, options) => {
|
||||
// console.log('Proxy configured:', options)
|
||||
// },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user