Keep native collection launches responsive

This commit is contained in:
2026-10-05 10:48:38 -04:00
parent dbd2940d29
commit 1405114a14
26 changed files with 998 additions and 123 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defineConfig } from 'vite';
import { resolve } from 'node:path';
// Reuse launch composition with an independent read-only database connection.
export default defineConfig({
plugins: [{ name: 'launch-database', enforce: 'pre', resolveId(source) {
if (source.endsWith('/db/index.js')) return resolve('src/lib/server/reports/database.ts');
} }],
build: {
ssr: true, outDir: '.svelte-kit/launch', emptyOutDir: true,
rollupOptions: {
input: 'src/lib/server/provisioning/launch-worker.ts', external: ['better-sqlite3'],
output: { entryFileNames: 'worker.mjs' }
}
}
});