Can't access Strapi Cloud environment variables in admin dashboard

I use Strapi Cloud to deploy & host my strapi project. In my project’s settings, I have defined environment variables with the prefix of STRAPI_ADMIN so that they can be accessed in the admin panel (as per the docs). I am injecting the variables into my application via a custom webpack plugin (as per the docs). However, the environment variables have a value of undefined.

After doing some digging, it seems like the environment variables are not passed to the webpack build step. What is the proper way to define an environment variable in the Strapi Cloud Dashboard that can be accessed in the Admin Panel ?

This topic has been created from a Discord post (1282684206668845138) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Can’t access Strapi Cloud environment variables in admin panel

Everything works fine when running in local development (as the env vars are defined in my local .env file), it just fails when deploying to strapi cloud.