From 6358e7e72dc06712128cc4e8eedcab350247aae4 Mon Sep 17 00:00:00 2001 From: Kshitij <160704796+kshitij-ka@users.noreply.github.com> Date: Sun, 20 Apr 2025 02:34:54 +0530 Subject: [PATCH] Updated backend url in .env and removed or operator in API URL var in Frontend/src/components/FileList.jsx --- Frontend/.env | 2 +- Frontend/src/components/FileList.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/.env b/Frontend/.env index 77b2686..8d76b66 100644 --- a/Frontend/.env +++ b/Frontend/.env @@ -1 +1 @@ -VITE_API_URL=http://192.168.29.61:8081 +VITE_API_URL=http://backend:8080 diff --git a/Frontend/src/components/FileList.jsx b/Frontend/src/components/FileList.jsx index 03ed7b8..76e097b 100644 --- a/Frontend/src/components/FileList.jsx +++ b/Frontend/src/components/FileList.jsx @@ -18,7 +18,7 @@ import { ArrowLeft, } from "lucide-react"; -const API_URL = import.meta.env.VITE_API_URL || "http://localhost:8080"; +const API_URL = import.meta.env.VITE_API_URL; const FileTable = ({ initialPath }) => { // Read username dynamically to avoid stale null on first load