fix swagger
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { resolve } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
||||
const proxy = {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
open: true
|
||||
}
|
||||
host: true,
|
||||
port: 5173,
|
||||
proxy,
|
||||
},
|
||||
preview: {
|
||||
host: true,
|
||||
port: 5173,
|
||||
proxy,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user