- Updated drizzle configuration to use the Neon HTTP driver for improved compatibility with Next.js. - Added @neondatabase/serverless package to package.json for serverless database support. - Modified database connection logic to utilize the new Neon client. - Removed deprecated customer creation method in StripeProvider for cleaner code.
15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
import 'dotenv/config';
|
|
import { defineConfig } from 'drizzle-kit';
|
|
|
|
/**
|
|
* https://orm.drizzle.team/docs/get-started/neon-new#step-5---setup-drizzle-config-file
|
|
*/
|
|
export default defineConfig({
|
|
out: './drizzle',
|
|
schema: './src/db/schema.ts',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL!,
|
|
},
|
|
});
|