is it possible to not require Prisma connected in Next build?
Unanswered
aa55h posted this in #help-forum
aa55hOP
Basically the title, it quite frustrates me that i have to initialize & connect to a PG DB in order to build my website :/
9 Replies
@Anay-208 Are you using SSG
aa55hOP
i dont think so
Ig you can try to make all your pages fully dynamic to prevent that from happening
incase you are running migrations, a db url is required
Cinnamon Teal
I don't get it. If you are using Prisma to query the database, you need it connected. Otherwise none of your Prisma queries will work and your app won't be able to interact with the database.
If your app doesn't need a database then you don't need Prisma either.
Or are you asking about something else?
If your app doesn't need a database then you don't need Prisma either.
Or are you asking about something else?
aa55hOP
Well I just wanted to ask if its possible to not have database running during
next build, as it requires additional setup in the CI pipeline, just to see if the project can buildthe output mode is set to
standaloneCinnamon Teal
Ah ok, got it. Maybe if all your routes are rendered at request time, it's possible? As none of the Prisma related code will called during build time then. But not sure, not something I have tried.
@Cinnamon Teal Ah ok, got it. Maybe if all your routes are rendered at request time, it's possible? As none of the Prisma related code will called during build time then. But not sure, not something I have tried.
aa55hOP
that is quite possible, what are the possible solutions to this? does it work this way, are there any disadvantages to this or particular doc pages i could read this more about?