Access Environment Variables in Webpack React app

Our devops engineer has created certain app level environment variables from Qovery console. I am not able to access those in my webpack React app. I have tried process.env.MY_VAR but it is undefined.

Hi @Musadiq_Khan ,

I think react needs all environment variables being prefixed by REACT_ - can you check the react documentation?

Hi @rophilogene

That’s for the apps created using create react app. My app is webpack application without CRA.

@rophilogene - Any help here? I have also tested with a dummy env variable REACT_APP_NAME but no luck.

Can you please provide your web console url ?

Hi @rophilogene ,

I have messaged the console url. Please check. Thanks

Can you show me your Dockerfile please @Musadiq_Khan ?