novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
35.51k stars 3.92k forks source link

🐛 Bug Report: WebSocket Context Path on Frontend #7156

Open truediogo opened 4 days ago

truediogo commented 4 days ago

📜 Description

WebSocket Context Path not working on Frontend, even with variables set the front-end stays trying to fetch root domain

👟 Reproduction steps

1 - Deploy with Docker

https://docs.novu.co/community/self-hosting-novu/deploy-with-docker

2 - Set Context Paths At .env

# Context Paths
# Only needed for setups with reverse-proxies
GLOBAL_CONTEXT_PATH="novu"
FRONT_BASE_CONTEXT_PATH="web"
API_CONTEXT_PATH="api"
WS_CONTEXT_PATH="ws"
WIDGET_CONTEXT_PATH="widget"

3 - Access Dashboard

👍 Expected behavior

It should work properly with all modules respecting context path variables

👎 Actual Behavior with Screenshots

Captura de Tela 2024-11-28 às 15 06 40

Frontend is calling / instead /novu/ws

Novu version

2.1.0

npm version

No response

node version

No response

📃 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

linear[bot] commented 4 days ago

NV-4927 🐛 Bug Report: WebSocket Context Path on Frontend