chore(frontend): vite dev proxy for /api and /wh
This commit is contained in:
@@ -8,6 +8,13 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: { "@": path.resolve(__dirname, "src") },
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": { target: "http://127.0.0.1:5099", changeOrigin: false },
|
||||
"/wh": { target: "http://127.0.0.1:5099", changeOrigin: false },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: path.resolve(__dirname, "../src/VolcanicCore.Api/wwwroot"),
|
||||
emptyOutDir: true,
|
||||
|
||||
Reference in New Issue
Block a user