https://starter.obytes.com/getting-started/environment-vars-config/ #263
Replies: 4 comments 13 replies
-
Env.NAME is undefined when use to build android |
Beta Was this translation helpful? Give feedback.
-
I defined a number based env variable in the env.js, and assigned house: process.env.HOURS to the clientEnv object, then the pnpm ios fails with type error - cannot assign string to number, then when i convert the number like Number(process.env.HOURS) then the pre-commit fails with error cannot assign number to string, what can i do here? how to define a number variable ? |
Beta Was this translation helpful? Give feedback.
-
For people trying to replicate the same approach in their own projects, a common issue we encounter
To resolve this, ensure you import your environment variables from @env, which should be an alias for ./src/core/env.js, instead of ./env.js. |
Beta Was this translation helpful? Give feedback.
-
Hi, what do you think about new Expo Env handling model / approach? |
Beta Was this translation helpful? Give feedback.
-
https://starter.obytes.com/getting-started/environment-vars-config/
Environment variables and configuration with validation and type-checking.
https://starter.obytes.com/getting-started/environment-vars-config/
Beta Was this translation helpful? Give feedback.
All reactions