mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 00:03:32 +08:00
Revert "Merge branch 'lfoss-1889' of https://github.com/langflow-ai/langflow into lfoss-1889"
This reverts commit896436ac53, reversing changes made to475c2fa027.
This commit is contained in:
@ -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",
|
||||
|
||||
@ -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",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@ -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/";
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user