Add new build and database setup scripts to package.json for production
This commit is contained in:
16
drizzle.config.production.ts
Normal file
16
drizzle.config.production.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { defineConfig } from 'drizzle-kit';
|
||||
|
||||
export default defineConfig({
|
||||
schema: './src/lib/db/schema.ts',
|
||||
out: './drizzle',
|
||||
dialect: 'mysql',
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL!,
|
||||
},
|
||||
verbose: true,
|
||||
strict: true,
|
||||
// DigitalOcean Managed Database specific settings
|
||||
introspect: {
|
||||
casing: 'camel'
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user