🔧 Simplify API proxy rewrite rule in Vite configuration
This commit is contained in:
@@ -47,7 +47,7 @@ export default defineConfig({
|
||||
'/api/gamemaster': {
|
||||
target: 'http://localhost:3001',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api\/gamemaster/, '/api/gamemaster'),
|
||||
rewrite: path => path,
|
||||
secure: false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user