commits frfr

This commit is contained in:
Lara 2025-04-03 23:40:52 +03:00
parent e0b483f344
commit dcc647d085
Signed by: laratheprotogen
GPG key ID: 5C0296EB3165F98B
6 changed files with 64 additions and 23 deletions

View file

@ -1,11 +1,14 @@
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',
dbCredentials: { url: process.env.DATABASE_URL },
dbCredentials: {
accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
databaseId: process.env.CLOUDFLARE_DATABASE_ID!,
token: process.env.CLOUDFLARE_D1_TOKEN!,
},
verbose: true,
strict: true,
dialect: 'sqlite'
dialect: 'sqlite',
driver: 'd1-http'
});