* fix error on port frontend variable .env

* ✨ (constants.ts, vite.config.mts): add support for configurable LANGFLOW_HOST environment variable to allow dynamic backend URL configuration

* 🔧 (constants.ts, vite.config.mts): consolidate backend URL configuration into a single environment variable
This commit is contained in:
Cristhian Zanforlin Lousa 2024-06-21 17:26:58 -03:00 • committed by GitHub
commit 74b8b98cb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 40 additions and 31 deletions

View file

@ -5,7 +5,6 @@ import path from "path";
test("user must interact with chat with Input/Output", async ({ page }) => {
if (!process.env.CI) {
dotenv.config();
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
}
@ -107,7 +106,6 @@ test("user must interact with chat with Input/Output", async ({ page }) => {
test("user must be able to see output inspection", async ({ page }) => {
if (!process.env.CI) {
dotenv.config();
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
}
@ -161,7 +159,6 @@ test("user must be able to see output inspection", async ({ page }) => {
test("user must be able to send an image on chat", async ({ page }) => {
if (!process.env.CI) {
dotenv.config();
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
}

View file

@ -42,7 +42,6 @@ test("should interact with api request", async ({ page }) => {
test("erase button should clear the chat messages", async ({ page }) => {
if (!process.env.CI) {
dotenv.config();
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
}

View file

@ -4,7 +4,6 @@ import path from "path";
test("TextInputOutputComponent", async ({ page }) => {
if (!process.env.CI) {
dotenv.config();
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
}