Files
ink-note-app/svelte.config.js
T
Your NameandClaude Sonnet 5.5 0b5f8bfa8b chore: project scaffold, build config, scripts and README
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>
2026-10-15 11:57:09 +02:00

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']
}
}
}
};