-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed as not planned
Labels
bugIssues related to bugs on the documentation websiteIssues related to bugs on the documentation website
Description
Describe the bug
Browser works well but when i create a mobile build it is undefined.
My ionic info:
Ionic:
Ionic CLI : 6.10.1 (/Users/neil/.nvm/versions/node/v10.16.3/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 5.0.7
Capacitor:
Capacitor CLI : 2.2.1
@capacitor/core : 2.3.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.16.3 (/Users/neil/.nvm/versions/node/v10.16.3/bin/node)
npm : 6.13.6
OS : macOS Mojave
To reproduce
Steps to reproduce the behavior:
- Build mobile using
cross-env REACT_APP_APPENV=development react-scripts build && ionic capacitor copy ios && ionic capacitor open ios
- Try to print env variable
REACT_APP_APPENV
usingconsole.log(process.env)
- Result:
{"NODE_ENV":"production","PUBLIC_URL":""}
Metadata
Metadata
Assignees
Labels
bugIssues related to bugs on the documentation websiteIssues related to bugs on the documentation website