🔧 Simplify API proxy rewrite rule in Vite configuration

This commit is contained in:
2026-01-29 04:42:32 +00:00
parent 0cc01aa476
commit 13e6ce7467

View File

@@ -47,7 +47,7 @@ export default defineConfig({
'/api/gamemaster': { '/api/gamemaster': {
target: 'http://localhost:3001', target: 'http://localhost:3001',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api\/gamemaster/, '/api/gamemaster'), rewrite: path => path,
secure: false secure: false
} }
} }