Bun + SvelteKit (static adapter) + Electron project files, icon resources, dev/e2e/bench scripts and the README documenting the app. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
21 lines
671 B
JavaScript
21 lines
671 B
JavaScript
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']
|
|
}
|
|
}
|
|
}
|
|
};
|