Error: Error connecting to database: fetch is not defined

Trying to use neon-http with SST
import { neonConfig, neon, Pool } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
import { Config } from "sst/node/config";

neonConfig.fetchConnectionCache = true;

const sql = neon(Config.NEON_CONNECTION_STRING);

export const db = drizzle(sql);
import { neonConfig, neon, Pool } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
import { Config } from "sst/node/config";

neonConfig.fetchConnectionCache = true;

const sql = neon(Config.NEON_CONNECTION_STRING);

export const db = drizzle(sql);
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server