Saifur
Saifur
DTDrizzle Team
Created by Saifur on 6/6/2024 in #help
NeonDbError: Error connecting to database
I've tried to test this with a hono, bun server, it it worked in some arieas, The "drizzle-kit push" and "drizzle-kit studio" didn't work, then I set up maigration for neon db, then It worked. and yes db queries are working in hono server, but I'm having complete brekdown on my next.js app
4 replies
DTDrizzle Team
Created by Saifur on 6/6/2024 in #help
NeonDbError: Error connecting to database
import { defineConfig } from 'drizzle-kit'

import { env } from '~/env'

console.log(env.DATABASE_URL)

export default defineConfig({
schema: './src/lib/db/schema.ts',
out: './src/lib/db/migrations',
dialect: 'postgresql',
dbCredentials: {
url: env.DATABASE_URL,
},
})
import { defineConfig } from 'drizzle-kit'

import { env } from '~/env'

console.log(env.DATABASE_URL)

export default defineConfig({
schema: './src/lib/db/schema.ts',
out: './src/lib/db/migrations',
dialect: 'postgresql',
dbCredentials: {
url: env.DATABASE_URL,
},
})
and yes, I've tried logging the env var, it works fine, I'm also using the latest version
4 replies