sanner
sanner
Explore posts from servers
DTDrizzle Team
Created by sanner on 8/18/2024 in #help
Migration Halts
I figured out the issue had to use ssl and the rejectUnauthorized flag
import { drizzle } from "drizzle-orm/node-postgres";
import { DrizzlePostgreSQLAdapter } from "@lucia-auth/adapter-drizzle";
import {session, user} from "$lib/drizzle/schema";
import pg from "pg";


const db = new pg.Client({
connectionString: import.meta.env.DATABASE_URL,
ssl: {
rejectUnauthorized: false
}
});
export const temboDB = drizzle(db, {schema: {user, session}});
export const adapter = new DrizzlePostgreSQLAdapter(temboDB, session, user);
import { drizzle } from "drizzle-orm/node-postgres";
import { DrizzlePostgreSQLAdapter } from "@lucia-auth/adapter-drizzle";
import {session, user} from "$lib/drizzle/schema";
import pg from "pg";


const db = new pg.Client({
connectionString: import.meta.env.DATABASE_URL,
ssl: {
rejectUnauthorized: false
}
});
export const temboDB = drizzle(db, {schema: {user, session}});
export const adapter = new DrizzlePostgreSQLAdapter(temboDB, session, user);
7 replies
DTDrizzle Team
Created by sanner on 8/18/2024 in #help
Migration Halts
This is my current folder structure
7 replies