Files
Robert Goodall cd2b900639
ci / build (push) Successful in 1m3s
ci / image (push) Successful in 41s
Initial commit: Nosterm client (terminal-style Nostr chat SPA)
2026-07-24 13:47:53 -04:00

22 lines
611 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
// Client-only SPA: prerender the shell, fall back to it for all routes.
adapter: adapter({
fallback: 'index.html'
}),
prerender: {
entries: ['*']
}
// CSP is served by Caddy (see Caddyfile): this is a client-only SPA served
// from a static fallback page, which is not prerendered, so SvelteKit's
// build-time CSP hashing does not apply here.
}
};
export default config;