#Transitioned my API to App router, now failing to build as it calls Prisma in docker build.
4 messages · Page 1 of 1 (latest)
#0 79.64 Error:
#0 79.64 Invalid `prisma.table.deleteMany()` invocation:
#0 79.64
#0 79.64
#0 79.64 Can't reach database server at `db`:`5432`
#0 79.64
#0 79.64 Please make sure your database server is running at `db`:`5432`.
is there a way to disable pre-rendering the api endpoint? the docs seem to be a bit outdated or make it tricky to find out more about this feature. 😦
try changing dynamic to force-dynamic: https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic