- start.sh: builds and launches Node production server on 192.168.0.94:4078 - Multi-domain CSRF: not needed — SvelteKit natively passes when Origin matches Host - hooks.server.ts: minimal stub with explanation - svelte.config.js: reverted csrf experiment (not supported in this version)
15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
import adapter from '@sveltejs/adapter-node';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
kit: {
|
|
adapter: adapter(),
|
|
},
|
|
vitePlugin: {
|
|
dynamicCompileOptions: ({ filename }) =>
|
|
filename.includes('node_modules') ? undefined : { runes: true }
|
|
}
|
|
};
|
|
|
|
export default config;
|