Hi,
I’ve been building my nextjs app for last 1 year or so using build time connection to database. Steps are described here: Run a Next.js App · Fly Docs
For last 24h (or more) I am getting the following issue:
Indeed, using DATABASE_URL as described in that post will no longer work if your database is only accessible on your Fly private network. Using fly deploy --depot=false will work for now, but it’s also worth understanding why your app needs database access at build time. There’s also the option to defer builds if your build doesn’t take very long.
In the future we might restore Flycast access for Depot builders, but only after managed Postgres is released.