Drizzle config and websocket

See the important callout in the docs here (go to Neon Websockets tab): https://orm.drizzle.team/docs/connect-neon#step-2---initialize-the-driver-and-make-a-query It says to add ws in the drizzle config, but I don't know where. Additonally I opted to use pool with neon. The issue I am having is that my migrations are not being applied correctly and I am wonder if incorrect config is the reason. Here is my drizzle.config.ts
import { defineConfig } from "drizzle-kit";
import { Resource } from "sst";

export default defineConfig({
dialect: "postgresql",
schema: "./core/db/schema.ts",
out: "./drizzle/migrations",

dbCredentials: {
url: Resource.DatabaseCredentials.dbUrl,
},
});
import { defineConfig } from "drizzle-kit";
import { Resource } from "sst";

export default defineConfig({
dialect: "postgresql",
schema: "./core/db/schema.ts",
out: "./drizzle/migrations",

dbCredentials: {
url: Resource.DatabaseCredentials.dbUrl,
},
});
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?