Why does my app fail to build while trying to connect to a DigitalOcean Managed Database?

Validated on 29 Jan 2024 • Last edited on 17 Jun 2025

App Platform does not support connecting to DigitalOcean Managed Databases during the build process if the database has trusted sources enabled. This is because the app’s network configuration information can only be provided to the database’s trusted sources list after the app has been built.

This limitation is by design.

As a workaround, you can temporarily disable trusted sources for your app. However, we recommend not connecting your database to your app at build time. This keeps the build process self-contained and independent of external services that might otherwise cause the build to fail.

How do I fix the error "Record is managed by an App on this account, and cannot be deleted"?

Use the app’s Settings tab to remove domains associated with App Platform apps.

Why do I get the error “JavaScript heap out of memory” during deployment?

Increase the heap memory by setting the environment variable NODE_OPTIONS=–max-old-space-size=4096.

How do I fix a "permission denied for schema public" error in my dev database?

Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.