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
The web container in the self-hosted Docker setup doesn't properly apply the environment variables to the frontend application URLs. When changing environment variables like REACT_APP_API_URL or REACT_APP_WS_URL, the frontend application continues to use the default/build-time URLs (e.g localhost:3000 for API) instead of the runtime environment variables.
👟 Reproduction steps
Use the official docker-compose.yml file for Novu v2.0.0
Set custom environment variables for the web container:
Open browser developer tools and inspect network requests
Observe that API and WebSocket requests are still being made to the default URLs instead of the custom domain
👍 Expected behavior
The web container should use the provided environment variables for API and WebSocket URLs, allowing proper configuration for custom domains and different deployment scenarios.
👎 Actual Behavior with Screenshots
The web container ignores the environment variables and continues to use the default URLs hardcoded during the image build. Network requests in browser developer tools show connections being attempted to default URLs instead of the configured custom domain.
Novu version
2.0.0
npm version
10.8.2
node version
v20.18.0
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
youssefsiam38
changed the title
🐛 Bug Report: Web Container Environment Variables Not Applied to Frontend URLs
🐛 Bug Report: Docker Image v2.0.0 Environment Variables Not Applied to Frontend URLs
Oct 22, 2024
This issue unfortunately put a damper on our excitement about v2.0.0, as we can't properly configure frontend URLs for production. Any updates on this? We're eager to use the new version but blocked by this environment variable behavior.
📜 Description
The web container in the self-hosted Docker setup doesn't properly apply the environment variables to the frontend application URLs. When changing environment variables like
REACT_APP_API_URL
orREACT_APP_WS_URL
, the frontend application continues to use the default/build-time URLs (e.g localhost:3000 for API) instead of the runtime environment variables.👟 Reproduction steps
👍 Expected behavior
The web container should use the provided environment variables for API and WebSocket URLs, allowing proper configuration for custom domains and different deployment scenarios.
👎 Actual Behavior with Screenshots
The web container ignores the environment variables and continues to use the default URLs hardcoded during the image build. Network requests in browser developer tools show connections being attempted to default URLs instead of the configured custom domain.
Novu version
2.0.0
npm version
10.8.2
node version
v20.18.0
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: