© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
64 replies
joostschuur

Using Vercel Postgres and developing locally

To confirm, if I want to use Vercel Postgres in production and a local Postgres DB for development, is the best way to just conditionally import
drizzle
drizzle
(and other platform specific stuff like
sql
sql
) from
drizzle-orm/vercel-postgres
drizzle-orm/vercel-postgres
or
drizzle-orm/node-postgres
drizzle-orm/node-postgres
based on
NODE_ENV
NODE_ENV
?

I see the sample Next.js project has been updated for Vercel Postgres: https://github.com/vercel/examples/blob/main/storage/postgres-drizzle/lib/drizzle.ts
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to setup vercel/postgres locally
Drizzle TeamDTDrizzle Team / help
15mo ago
Vercel Postgres failed to work locally
Drizzle TeamDTDrizzle Team / help
15mo ago
@vercel/postgres & drizzle update?
Drizzle TeamDTDrizzle Team / help
3y ago
Connecting to Vercel Postgres
Drizzle TeamDTDrizzle Team / help
3y ago
Next page