feat: use D1 binding for local database

This commit is contained in:
2026-06-25 12:09:44 +01:00
parent 29ff3265e8
commit de08587b77
8 changed files with 37 additions and 67 deletions
-3
View File
@@ -1,11 +1,8 @@
import { defineConfig } from 'drizzle-kit';
if (!process.env.DATABASE_URL) throw new Error('DATABASE_URL is not set');
export default defineConfig({
schema: './src/lib/server/db/schema.ts',
dialect: 'sqlite',
dbCredentials: { url: process.env.DATABASE_URL },
verbose: true,
strict: true
});