PostgreSQL with Drizzle Not Working in V0

I created a new project in V0 and set up PostgreSQL using Drizzle. After completing the configuration, V0 does not enable the preview and displays the following message:

“V0 does not currently support the pg package.”

This issue prevents me from using PostgreSQL with Drizzle in my project.

Steps to Reproduce

  1. Create a new project in V0.
  2. Configure PostgreSQL with Drizzle.
  3. Attempt to preview the project.
  4. See the error message: “V0 does not currently support the pg package.”

Expected Behavior

I expected V0 to support PostgreSQL with Drizzle and allow the preview to work as expected.

Questions

  • Is there a workaround for this issue?
  • Does V0 plan to support the pg package soon?
  • Are there alternative ways to use Drizzle with PostgreSQL in V0?

Thanks in advance for any help!

1 Like

Hi @viniciusvelasco, thanks for opening up the topic.

v0 is mostly focused on frontend development as of today. It can make backend APIs or server actions but using complex backend integrations such as a Postgres DB is out of the scope right now.

I’ll forward your feedback to the team.

Hello @anshumanb thank you for replying. Although the screenshot shows the database configuration file, this situation occurs in any project file. No preview works

Hi @viniciusvelasco, I see. Have you tried removing the pg package by prompting v0 or directly from the project’s package.json?