mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 09:27:03 +00:00
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:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// API Base URL from environment or default
|
||||
export const API_URL = import.meta.env.VITE_API_URL || 'http://127.0.0.1:8001'
|
||||
export const API_URL = import.meta.env.VITE_API_URL ?? 'http://127.0.0.1:8001'
|
||||
|
||||
// Timeout configurations (in milliseconds)
|
||||
export const TIMEOUT_CONFIG = {
|
||||
|
||||
Reference in New Issue
Block a user