Initial commit: Nosterm client (terminal-style Nostr chat SPA)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user