Private network during build?? I can in one not other
andrewgazelka
TRIALOP

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.

Solved

7 Replies

andrewgazelka
TRIALOP

a year ago

dd14bdb3-167b-4cf3-8c35-cf4228ccab35


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


andrewgazelka
TRIALOP

a year ago

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! 🙂


andrewgazelka
TRIALOP

a year ago

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?


andrewgazelka
TRIALOP

a year ago

true


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...