feat(deploy): single-origin path-based deployment + project site #34

Merged
developer merged 4 commits from feature/deploy-single-origin into development 2026-05-23 17:24:25 +00:00
Showing only changes of commit a453b74b04 - Show all commits
+4 -1
View File
@@ -18,7 +18,10 @@ test.describe("PWA", () => {
.get(href!) .get(href!)
.then((r) => r.json()); .then((r) => r.json());
expect(manifest.name).toBe("Galaxy"); expect(manifest.name).toBe("Galaxy");
expect(manifest.start_url).toBe("/"); // Relative so the manifest is base-agnostic: served under the app
// base (`/` at the root, `/game/` in the single-origin deploy) it
// resolves to the app root either way.
expect(manifest.start_url).toBe("./");
expect(manifest.display).toBe("standalone"); expect(manifest.display).toBe("standalone");
const sizes = (manifest.icons as { sizes: string }[]).map((i) => i.sizes); const sizes = (manifest.icons as { sizes: string }[]).map((i) => i.sizes);
expect(sizes).toContain("192x192"); expect(sizes).toContain("192x192");