# Why are my App Platform environment variables not updating? If your app is successfully deploying but your environment variables are remaining unchanged, you may have defined the same variable name at both the app and component levels. Component-level variables override app-level variables. To fix this, ensure that your variable is defined at the appropriate level: at the [app level](https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/index.html.md#define-app-level-environment-variables) or the [component level](https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/index.html.md#define-runtime-variables-after-app-creation). ## Related Topics [How do I fix the error "Record is managed by an App on this account, and cannot be deleted"?](https://docs.digitalocean.com/support/how-do-i-fix-the-error-record-is-managed-by-an-app-on-this-account-and-cannot-be-deleted/index.html.md): 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?](https://docs.digitalocean.com/support/why-do-i-get-the-error-javascript-heap-out-of-memory-during-deployment/index.html.md): 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?](https://docs.digitalocean.com/support/how-do-i-fix-a-permission-denied-for-schema-public-error-in-my-dev-database/index.html.md): Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.