fix: update API endpoints to include /api prefix

This commit is contained in:
2026-05-05 18:50:11 +08:00
parent 1323da55a6
commit 9c64282ad5
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export default defineConfig({
port: 3000,
proxy: {
'/api': {
target: `http://${APP_TARGET}`,
target: `http://${APP_TARGET}/api`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}