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>
This commit is contained in:
1 parent
437887207c
commit
0b5f8bfa8b
27 files changed
+2050
No files matched your search
@@ -0,0 +1,20 @@
|
||||
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']
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user