mrgentlehashtag3542
mrgentlehashtag3542
DTDrizzle Team
Created by mrgentlehashtag3542 on 9/17/2023 in #help
Setting connectionString from env in sveltekit
No worries, resolved it with dotenv
import { Config } from "drizzle-kit";
import * as dotenv from 'dotenv';
dotenv.config();

export default {
schema: [
'./src/schema/task.ts'
],
out: "./drizzle",
driver: "pg",
dbCredentials: {
connectionString: process.env.DRIZZLE_DATABASE_URL!
}
} satisfies Config;
import { Config } from "drizzle-kit";
import * as dotenv from 'dotenv';
dotenv.config();

export default {
schema: [
'./src/schema/task.ts'
],
out: "./drizzle",
driver: "pg",
dbCredentials: {
connectionString: process.env.DRIZZLE_DATABASE_URL!
}
} satisfies Config;
7 replies