Rittam
Rittam
Explore posts from servers
XXata
Created by Rittam on 2/14/2025 in #help
Connect xata-db with encore.dev
figured it out. import pg from "pg"; import { drizzle } from "drizzle-orm/node-postgres"; import { env } from "@/env"; if (!env.XATA_DATABASE_URL) { throw new Error("❌ XATA_DATABASE_URL is not set."); } const pool = new pg.Pool({ connectionString: env.XATA_DATABASE_URL as string, max: 20, }); export const db = drizzle(pool); pool .connect() .then(() => console.log("✅ Connected to Xata Postgres!")) .catch((err) => console.error("❌ Connection error:", err)); export default db;
3 replies
DTDrizzle Team
Created by Rittam on 1/31/2025 in #help
Version required mkcert.
fixed.
5 replies
DTDrizzle Team
Created by Rittam on 1/31/2025 in #help
Version required mkcert.
problem still persist.
5 replies