import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ export default { kit: { // Electron serves build/ through the app:// protocol, so the app is a pure SPA. adapter: adapter({ pages: 'build', assets: 'build', fallback: 'index.html', strict: false }), csp: { mode: 'hash', directives: { 'default-src': ['self'], 'script-src': ['self'], 'style-src': ['self', 'unsafe-inline'], 'font-src': ['self', 'data:'], 'img-src': ['self', 'data:', 'blob:', 'notes-media:'], 'connect-src': ['self', 'ws://localhost:5173', 'http://localhost:5173'] } } } };