From 0950da0b43bd8a627e0a79feac1df5f184f1e96f Mon Sep 17 00:00:00 2001 From: Jennifer Weber Date: Thu, 14 Aug 2025 15:23:56 -0700 Subject: [PATCH] Update logic for dev server url after cloud https changes default to staging http for now env var can be overrden for local in the .env file --- vite.config.mts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index 12ad46362..36c1fa7cc 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -20,7 +20,8 @@ const DISABLE_TEMPLATES_PROXY = process.env.DISABLE_TEMPLATES_PROXY === 'true' const DISABLE_VUE_PLUGINS = false // Always enable Vue DevTools for development // Hardcoded to staging cloud for testing frontend changes against cloud backend -const DEV_SERVER_COMFYUI_URL = 'https://stagingcloud.comfy.org' +const DEV_SERVER_COMFYUI_URL = + process.env.DEV_SERVER_COMFYUI_URL || 'https://stagingcloud.comfy.org' // To use local backend, change to: 'http://127.0.0.1:8188' // Optional: Add API key to .env as STAGING_API_KEY if needed for authentication