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.