Commit 16f7df5
Fix frontend SSE connection logic to use NODE_ENV instead of hostname detection
- Replace hostname-based detection (localhost/127.0.0.1) with NODE_ENV check
- Development mode (npm start): uses direct backend URL regardless of hostname
- Production mode (npm run build): uses relative URL for same-origin requests
- This fixes cases where development server runs on non-localhost hostnames
Tested and confirmed working on:
- Local development (npm run dev and npm start)
- Render deployment
- Vercel deployment
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9575d14 commit 16f7df5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments