fix: fix Docker dev proxy and handle non-JSON error responses in frontend

This commit is contained in:
2026-04-02 14:48:40 +08:00
parent 0905b0302b
commit 5f76abec8b
3 changed files with 9 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:3000',
'/api': process.env.API_URL || 'http://localhost:3000',
},
},
});