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);
Was this page helpful?