diff --git a/src/frontend/package.json b/src/frontend/package.json index a52260199c..985b6ed805 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -113,7 +113,7 @@ "last 1 safari version" ] }, - "proxy": "http://127.0.0.1:7860", + "proxy": "http://localhost:7860", "devDependencies": { "@biomejs/biome": "2.1.1", "@jest/types": "^30.0.1", diff --git a/src/frontend/playwright.config.ts b/src/frontend/playwright.config.ts index 3d8058a9b4..0ffd8d7774 100644 --- a/src/frontend/playwright.config.ts +++ b/src/frontend/playwright.config.ts @@ -104,7 +104,7 @@ export default defineConfig({ webServer: [ { command: - "uv run uvicorn --factory langflow.main:create_app --host 127.0.0.1 --port 7860 --loop asyncio", + "uv run uvicorn --factory langflow.main:create_app --host localhost --port 7860 --loop asyncio", port: 7860, env: { LANGFLOW_DATABASE_URL: "sqlite:///./temp", @@ -119,7 +119,7 @@ export default defineConfig({ command: "npm start", port: PORT || 3000, env: { - VITE_PROXY_TARGET: "http://127.0.0.1:7860", + VITE_PROXY_TARGET: "http://localhost:7860", }, }, ], diff --git a/src/frontend/src/customization/config-constants.ts b/src/frontend/src/customization/config-constants.ts index 4096f3779c..3159164486 100644 --- a/src/frontend/src/customization/config-constants.ts +++ b/src/frontend/src/customization/config-constants.ts @@ -1,6 +1,6 @@ export const BASENAME = ""; export const PORT = 3000; -export const PROXY_TARGET = "http://127.0.0.1:7860"; +export const PROXY_TARGET = "http://localhost:7860"; export const API_ROUTES = ["^/api/v1/", "^/api/v2/", "/health"]; export const BASE_URL_API = "/api/v1/"; export const BASE_URL_API_V2 = "/api/v2/"; diff --git a/src/frontend/vite.config.mts b/src/frontend/vite.config.mts index 498ccfb8e5..662a3270be 100644 --- a/src/frontend/vite.config.mts +++ b/src/frontend/vite.config.mts @@ -23,7 +23,7 @@ export default defineConfig(({ mode }) => { const apiRoutes = API_ROUTES || ["^/api/v1/", "^/api/v2/", "/health"]; const target = - env.VITE_PROXY_TARGET || PROXY_TARGET || "http://127.0.0.1:7860"; + env.VITE_PROXY_TARGET || PROXY_TARGET || "http://localhost:7860"; const port = Number(env.VITE_PORT) || PORT || 3000; @@ -44,7 +44,7 @@ export default defineConfig(({ mode }) => { }, define: { "process.env.BACKEND_URL": JSON.stringify( - envLangflow.BACKEND_URL ?? "http://127.0.0.1:7860", + envLangflow.BACKEND_URL ?? "http://localhost:7860", ), "process.env.ACCESS_TOKEN_EXPIRE_SECONDS": JSON.stringify( envLangflow.ACCESS_TOKEN_EXPIRE_SECONDS ?? 60,