style(config): standardize configuration file formatting
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
import { defineConfig } from 'drizzle-kit';
|
import { defineConfig } from "drizzle-kit";
|
||||||
import * as dotenv from 'dotenv';
|
import * as dotenv from "dotenv";
|
||||||
|
|
||||||
if (!process.env.DATABASE_URL) {
|
if (!process.env.DATABASE_URL) {
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
dotenv.config({ path: '.env.production' });
|
dotenv.config({ path: ".env.production" });
|
||||||
} else {
|
} else {
|
||||||
dotenv.config({ path: '.env.local' });
|
dotenv.config({ path: ".env.local" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
dialect: 'postgresql',
|
dialect: "postgresql",
|
||||||
schema: './src/db/schema.ts',
|
schema: "./src/db/schema.ts",
|
||||||
out: './drizzle',
|
out: "./drizzle",
|
||||||
dbCredentials: {
|
dbCredentials: {
|
||||||
url: process.env.DATABASE_URL!,
|
url: process.env.DATABASE_URL!,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user