mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-09-14 13:50:38 +08:00
13 lines
416 B
TypeScript
13 lines
416 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|
|
|
if (!process.env.DATABASE_URL) throw new Error('DATABASE_URL is not set');
|
|
if (!process.env.DATABASE_TOKEN) throw new Error('DATABASE_TOKEN is not set');
|
|
|
|
export default defineConfig({
|
|
schema: './src/lib/server/db/schema.ts',
|
|
dialect: 'turso',
|
|
dbCredentials: { url: process.env.DATABASE_URL, authToken: process.env.DATABASE_TOKEN },
|
|
verbose: true,
|
|
strict: true,
|
|
});
|