feat: prepare for Vercel deployment with PostgreSQL migration
This commit is contained in:
parent
38ab8a260c
commit
ffdc8c5b6c
8 changed files with 97 additions and 27 deletions
|
|
@ -1,11 +1,14 @@
|
|||
import { defineConfig } from 'drizzle-kit';
|
||||
import path from 'path';
|
||||
import * as dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
export default defineConfig({
|
||||
dialect: 'sqlite',
|
||||
schema: './src/lib/db/schema.ts',
|
||||
out: './drizzle',
|
||||
driver: 'pg',
|
||||
dbCredentials: {
|
||||
url: path.join(process.cwd(), 'data', 'db.sqlite'),
|
||||
connectionString: process.env.POSTGRES_URL!,
|
||||
},
|
||||
verbose: true,
|
||||
strict: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue