feat: prepare for Vercel deployment with PostgreSQL migration

This commit is contained in:
kaunghtut24 2025-06-16 15:36:08 +05:30
parent 38ab8a260c
commit ffdc8c5b6c
8 changed files with 97 additions and 27 deletions

View file

@ -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,
});