import { defineConfig } from 'vite' 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()], })