fix asset paths for subdirectory hosting, bump to 0.1.1
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
The deployed build is served from /file/<name>-<version>/, but Vite emitted absolute /assets/ URLs and BootScene loaded sprites from /sprites/. Set base: "./" in vite.config.ts and make the sprite paths relative so everything resolves next to index.html. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// The game is served from a versioned subdirectory
|
||||
// (https://teletypegames.org/file/<name>-<version>/), so all asset
|
||||
// URLs must be relative to index.html.
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
});
|
||||
Reference in New Issue
Block a user