简体   繁体   中英

Error in setting up AWS amplify environment variables, but nothing appears in build. how to fix it?

I am using aws amplify environment variables as follows, but not getting the set variables in the react frontend. I followed various stackoverflow tutorials and ended up with this. I rebuild the project after making changes, did not work.. Would be grateful for the help

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Seems I needed to add REACT_APP_ on every env Variables for create-react-app. eg: REACT_APP_MUNICIPALITY_NAME,

ref: How to add environment variables to AWS amplify?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM