Report this

What is the reason for this report?

process.env variables not available to process using DigitalOcean App Platform

Posted on May 7, 2021

I’ve specified environment variables in the app platform settings, made them available during build and run time, but the application doesn’t have access to them.

const API_URL = process.env.REACT_APP_API_URL;

The above is undefined, even though REACT_APP_API_URL is specified in the settings.

Am I missing something obvious?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.