init
This commit is contained in:
parent
3b2ec4fe5f
commit
8086aa8f38
51 changed files with 4109 additions and 0 deletions
14
website/drizzle.config.ts
Normal file
14
website/drizzle.config.ts
Normal file
|
|
@ -0,0 +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
|
||||
},
|
||||
|
||||
verbose: true,
|
||||
strict: true,
|
||||
dialect: 'postgresql'
|
||||
});
|
||||
Reference in a new issue