How to compile Prisma for PostgreSQL?

I use Prisma ORM.

On localhost I use SQLite for testing.

For production, I am going to use PostgreSQL.

To compile the code, I need to generate Prisma code. It works only when I point a PostgreSQL URL. But this URL contains secrets. So, I can’t pass it to the build process. (Or how to pass a secret to build?)

As a workaround I moved Prisma generation and npm run build into CMD in Docker. That requires me increase VM’s memory size more than the app needs.

Any advice?

Google fly.io build secrets and go to the docs.

Build time machines are different than run time machines.