Skip to content

Commit a3a9f80

Browse files
committed
relative build
1 parent 4b826e4 commit a3a9f80

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en" BGCOLOR="black">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" href="/app.webp" />
5+
<link rel="icon" href="app.webp" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="darkreader-lock" />
88
<title>Webleste</title>

frontend/src/game/dotnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let dotnet: DotnetHostBuilder;
8989
let exports: any;
9090

9191
export async function getDlls(): Promise<(readonly [string, string])[]> {
92-
const resources: any = await fetch("/_framework/blazor.boot.json").then((r) =>
92+
const resources: any = await fetch("../_framework/blazor.boot.json").then((r) =>
9393
r.json()
9494
);
9595

@@ -191,7 +191,7 @@ export const loadedLibcurlPromise = new Promise((r) => (libcurlresolver = r));
191191
export async function preInit() {
192192
if (gameState.ready) return;
193193

194-
wasm = await eval(`import("/_framework/dotnet.js")`);
194+
wasm = await eval(`import("../_framework/dotnet.js")`);
195195
dotnet = wasm.dotnet;
196196

197197
console.debug("initializing dotnet");

frontend/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Logo: Component<{}, {}> = function () {
5151
`;
5252
return (
5353
<a href="https://github.com/MercuryWorkshop/celeste-wasm" target="_blank">
54-
<img alt="Celeste icon" src="/app.webp" />
54+
<img alt="Celeste icon" src="./app.webp" />
5555
<span>{NAME}</span>
5656
<div class="extras">
5757
<span class="ver">v1.4.0.0</span>

frontend/src/splash.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ export const Splash: Component<
909909

910910
return (
911911
<div>
912-
<img alt="Splash image" class="splash" src="/splash.webp" />
912+
<img alt="Splash image" class="splash" src="./splash.webp" />
913913
<div class="blur" />
914914
<div class="main">
915915
<div class="container">

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import os from "node:os";
66
export default defineConfig({
77
plugins: [dreamlandPlugin()],
88
root: "./frontend",
9+
base: "./",
910
server: {
1011
headers: {
1112
"Cross-Origin-Embedder-Policy": "require-corp",

0 commit comments

Comments
 (0)