You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running yarn android:release in a React Native project, the environment configurations do not load. However, the configurations load as expected when running yarn start. This issue occurs in a setup with a self-hosted domain URL of Chatwoot and a modified namespace.
To Reproduce
Steps to reproduce the behavior:
Set up a self-hosted Chatwoot environment with a custom domain URL and modified namespace.
Configure React Native project to use environment-specific settings.
Run yarn start to confirm that the environment settings load correctly.
Run yarn android:release and observe that the environment settings are not loaded.
Expected behavior
The environment configurations should load consistently across both development (yarn start) and production builds (yarn android:release).
Observed behavior
The configurations that load correctly during yarn start are not loaded when executing yarn android:release. This results in default or empty configuration values being used, impacting the functionality depending on these configurations.
Environment
Chatwoot Installation: Self-hosted
Additional context
The issue seems related to the way environment variables are managed and loaded in the release build process. The react-native-config library is used for managing environment variables and might be misconfigured for production builds.
Describe the bug
When running yarn android:release in a React Native project, the environment configurations do not load. However, the configurations load as expected when running yarn start. This issue occurs in a setup with a self-hosted domain URL of Chatwoot and a modified namespace.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The environment configurations should load consistently across both development (yarn start) and production builds (yarn android:release).
Observed behavior
The configurations that load correctly during yarn start are not loaded when executing yarn android:release. This results in default or empty configuration values being used, impacting the functionality depending on these configurations.
Environment
Chatwoot Installation: Self-hosted
Additional context
The issue seems related to the way environment variables are managed and loaded in the release build process. The react-native-config library is used for managing environment variables and might be misconfigured for production builds.
Attached changes diff
The text was updated successfully, but these errors were encountered: