initial
This commit is contained in:
@@ -31,9 +31,21 @@ export default defineConfig({
|
||||
host: true,
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/auth': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
// No hacer proxy de /auth/callback porque es manejado por Vue Router
|
||||
bypass: (req, res, options) => {
|
||||
if (req.url === '/auth/callback' || req.url?.startsWith('/auth/callback?')) {
|
||||
return req.url // Deja que Vue Router lo maneje
|
||||
}
|
||||
}
|
||||
},
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user