79472595

Date: 2025-02-27 12:03:09
Score: 1.5
Natty:
Report link

You have a local database that you use for development, right? Surely you're not coding blindly without a database, building for production and testing there?

What you should be doing is using environment variables: in your local environment, the database URL should point to your own computer; in production it would point to the hosted DB.

Here's NextJs documentation on environment variables. And this is how to configure Prisma.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Perttu Haliseva