fix: configure sslip.io domains for Coolify Traefik proxy

- Use nullish coalescing (??) in api.js to support empty VITE_API_URL
- Set VITE_API_URL to backend's sslip.io Traefik domain
- Add sslip.io domains to CORS allowed origins
- Update FRONTEND_URL to sslip.io domain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
furkanyigit34
2026-03-07 18:09:13 +03:00
parent 0079313708
commit 99a132879f
3 changed files with 7 additions and 4 deletions

View File

@@ -285,6 +285,9 @@ allowed_origins = [
# Production server (Coolify)
"http://194.187.253.230:3010",
"http://194.187.253.230",
# Coolify Traefik proxy (sslip.io)
"http://trendyol.194.187.253.230.sslip.io",
"http://trendyol-api.194.187.253.230.sslip.io",
]
# Add production domain from environment variable