style(config): standardize configuration file formatting

This commit is contained in:
2026-04-07 08:09:09 -04:00
parent a897e8ead1
commit db9d6399dd
5 changed files with 63 additions and 63 deletions

View File

@@ -1,21 +1,21 @@
import { defineConfig } from 'drizzle-kit';
import * as dotenv from 'dotenv';
import { defineConfig } from "drizzle-kit";
import * as dotenv from "dotenv";
if (!process.env.DATABASE_URL) {
if (process.env.NODE_ENV === "production") {
dotenv.config({ path: '.env.production' });
} else {
dotenv.config({ path: '.env.local' });
}
if (process.env.NODE_ENV === "production") {
dotenv.config({ path: ".env.production" });
} else {
dotenv.config({ path: ".env.local" });
}
}
export default defineConfig({
dialect: 'postgresql',
schema: './src/db/schema.ts',
out: './drizzle',
dbCredentials: {
url: process.env.DATABASE_URL!,
},
verbose: true,
strict: true,
dialect: "postgresql",
schema: "./src/db/schema.ts",
out: "./drizzle",
dbCredentials: {
url: process.env.DATABASE_URL!,
},
verbose: true,
strict: true,
});