a year ago
I'm getting this in MongoDB. However, I do not see this setting in my Node app settings. Is there any way my node app can have access to mongo during build? Or do I need to use public network? Idk if the beta access to private network during build is being A/B tested right now.
Also likey this isn't a bug. Feel free to untag or I will.
7 Replies
a year ago
while the new builder does bring access to the private network during build, it is indeed still very much beta so it has been removed as an option all together for now.
we currently recommend doing whatever is needed with the database during runtime before starting your app, and using a healthcheck so that your app is not sent traffic until it has actually started up
awww yea sadly NextJS land next build makes it very hard to tell if something is going to run at build time or not :/ looking forward to beta existing for nixpack though! 🙂
or perhaps a good alternative solution existing for next that works well (unaware of it though)
our solutions was
export const dynamic = 'force-dynamic'everywhere
a year ago
you could also run the build during runtime?
a year ago
!s
Status changed to Solved brody • about 1 year ago