fix: replace instances of 127.0.0.1 to localhost (#8536)
* Replace instances of 127.0.0.1 to localhost * fix some replace-all issues * fix some replace-all issues * update starterprojects * Upgrade uvlock
This commit is contained in:
parent
5c38d0223d
commit
b77351331d
33 changed files with 3959 additions and 5686 deletions
|
|
@ -116,7 +116,7 @@
|
|||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"proxy": "http://127.0.0.1:7860",
|
||||
"proxy": "http://localhost:7860",
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.52.0",
|
||||
"@swc/cli": "^0.5.2",
|
||||
|
|
|
|||
|
|
@ -103,7 +103,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",
|
||||
|
|
@ -118,7 +118,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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue