Updated backend url in .env and removed or operator in API URL var in Frontend/src/components/FileList.jsx

This commit is contained in:
K
2025-04-20 02:34:54 +05:30
parent 97be5d1b93
commit 6358e7e72d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
VITE_API_URL=http://192.168.29.61:8081
VITE_API_URL=http://backend:8080
+1 -1
View File
@@ -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