This commit is contained in:
Shnimlz
2025-12-01 18:59:48 +00:00
parent 9c20ca0930
commit 7661b2b8b1
117 changed files with 17954 additions and 3591 deletions

View File

@@ -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,
}
}
}