From 8039a8b36414c7fba38906881ca63ec8c5199efb Mon Sep 17 00:00:00 2001 From: "claude (duplicate_chess)" Date: Tue, 19 May 2026 18:07:23 -0400 Subject: [PATCH] build: set vite base to /duplicate/ for sub-path hosting Hosted under chess.sethpc.xyz/duplicate/ as a third game-mode card on blind_chess. With base='/', Vite emitted absolute /assets/... URLs that would fall through the Caddy /duplicate/* handler and 404 against the blind_chess Fastify backend. Setting base='/duplicate/' keeps every asset fetch inside the static handler. --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index d32eba1..c255a02 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,5 +3,9 @@ import { svelte } from '@sveltejs/vite-plugin-svelte' // https://vite.dev/config/ export default defineConfig({ + // Hosted as a sub-app under chess.sethpc.xyz/duplicate/ alongside blind_chess. + // Setting `base` makes Vite emit asset URLs with the /duplicate/ prefix so they + // stay inside the Caddy static handler instead of falling through to blind_chess. + base: '/duplicate/', plugins: [svelte()], })