commits frfr
This commit is contained in:
parent
e0b483f344
commit
dcc647d085
6 changed files with 64 additions and 23 deletions
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue