Actualiza frontend, integraciones y dist de producción
This commit is contained in:
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
<link rel="icon" type="image/png" sizes="192x192" href="/calendario-impuestos/favicon-192.png?v=glm-2026" />
|
<link rel="icon" type="image/png" sizes="192x192" href="/calendario-impuestos/favicon-192.png?v=glm-2026" />
|
||||||
<link rel="shortcut icon" href="/calendario-impuestos/favicon.ico?v=glm-2026" />
|
<link rel="shortcut icon" href="/calendario-impuestos/favicon.ico?v=glm-2026" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/calendario-impuestos/apple-touch-icon.png?v=glm-2026" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/calendario-impuestos/apple-touch-icon.png?v=glm-2026" />
|
||||||
<script type="module" crossorigin src="/calendario-impuestos/assets/index-DjmlsRNV.js"></script>
|
<script type="module" crossorigin src="/calendario-impuestos/assets/index-3IoCMmqv.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/calendario-impuestos/assets/index-DrJGHNJG.css">
|
<link rel="stylesheet" crossorigin href="/calendario-impuestos/assets/index-DrJGHNJG.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ export function getSupabaseConfigurationMessage(): string | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getOAuthRedirectUrl(): string {
|
export function getOAuthRedirectUrl(): string {
|
||||||
|
// La URL debe coincidir exactamente con una de las permitidas en Supabase.
|
||||||
|
// No se agregan parámetros variables porque Auth descartaría redirect_to y
|
||||||
|
// terminaría enviando al SITE_URL de Supabase.
|
||||||
return new URL(import.meta.env.BASE_URL, window.location.origin).toString();
|
return new URL(import.meta.env.BASE_URL, window.location.origin).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,10 +231,12 @@ function clearStoredSession(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cleanOAuthFragment(): void {
|
function cleanOAuthFragment(): void {
|
||||||
|
const cleanUrl = new URL(window.location.href);
|
||||||
|
cleanUrl.hash = "";
|
||||||
window.history.replaceState(
|
window.history.replaceState(
|
||||||
null,
|
null,
|
||||||
document.title,
|
document.title,
|
||||||
`${window.location.pathname}${window.location.search}`,
|
`${cleanUrl.pathname}${cleanUrl.search}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,4 +5,12 @@ import { defineConfig } from "vite";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: "/calendario-impuestos/",
|
base: "/calendario-impuestos/",
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [react(), tailwindcss()],
|
||||||
|
server: {
|
||||||
|
port: 3000,
|
||||||
|
strictPort: true,
|
||||||
|
},
|
||||||
|
preview: {
|
||||||
|
port: 3000,
|
||||||
|
strictPort: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user