Initial commit

This commit is contained in:
michaeltieso
2025-12-01 14:49:17 +00:00
commit 3480888eaa
92 changed files with 16631 additions and 0 deletions

13
instrumentation.ts Normal file
View File

@@ -0,0 +1,13 @@
/**
* Next.js Instrumentation Hook
* This runs once when the Next.js server starts up
* Perfect for initializing the database and seeding it with sample data
*/
export async function register() {
// Only run in production/development runtime, not during build
if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.NEXT_PHASE !== 'phase-production-build') {
const { initializeDatabase } = await import('./lib/db/index');
await initializeDatabase();
}
}