Fix console assets on nested routes
build / build-push (push) Successful in 29s

The relative Vite base made BrowserRouter pages request JavaScript and CSS under /auth/assets. The SPA fallback returned index.html for those paths, so the browser never mounted React and the sign-in page appeared blank. Emit root-relative asset URLs so every client-side route loads the embedded console bundle.
This commit is contained in:
mats committed 2026-09-27 22:51:04 +02:00
1 parent 2348d2e4b4
commit 52ec290055
2 files changed
+8 -4

No files matched your search

+3 -3
View File
@@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>web</title>
<script type="module" crossorigin src="./assets/index-Dh5C0Ucn.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CZ8p4VMZ.css">
<script type="module" crossorigin src="/assets/index-D_F84V7q.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CZ8p4VMZ.css">
</head>
<body>
<div id="root"></div>