feat: initialize SQLite with versioned migrations and sample content

This commit is contained in:
2026-09-15 21:47:42 +03:30
parent 8bfe35f6b9
commit a9fe865d99
10 changed files with 765 additions and 0 deletions

6
src/instrumentation.ts Normal file
View File

@@ -0,0 +1,6 @@
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.NEXT_PHASE !== 'phase-production-build') {
const { initialize } = await import('./server/initialize');
initialize();
}
}