swarm-ui: use absolute asset paths in index.html

Relative hrefs (static/main.js) only resolve correctly for a route
one path segment deep - the browser resolves them against the
current URL's directory, so a route two-plus segments deep would
404 the JS/CSS silently once this is wired to a real server. Made
absolute (/static/main.js), matching what build.mjs's own comment
already documents these paths as being served at.
This commit is contained in:
iris 2026-08-17 00:13:40 +02:00 committed by mara
commit 22068bd2b1

View file

@ -5,13 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hyperhive swarm</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="static/colors.css">
<link rel="stylesheet" href="static/theme.css">
<link rel="stylesheet" href="static/swarm-ui.css">
<link rel="stylesheet" href="static/main.css">
<link rel="stylesheet" href="/static/colors.css">
<link rel="stylesheet" href="/static/theme.css">
<link rel="stylesheet" href="/static/swarm-ui.css">
<link rel="stylesheet" href="/static/main.css">
</head>
<body>
<div id="root"></div>
<script type="module" src="static/main.js"></script>
<script type="module" src="/static/main.js"></script>
</body>
</html>