🔧 Simplify API proxy rewrite rule in Vite configuration
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user