From a96e677daf85813462a873feddc85983a9d17e07 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Wed, 5 Mar 2025 22:21:17 -0700 Subject: [PATCH] FIX: She's alive! and its working! I had to server the backend to the live web though. --- backend/src/server.ts | 2 -- frontend/src/components/LoginForm.jsx | 2 +- frontend/src/pages/Dashboard.jsx | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/server.ts b/backend/src/server.ts index ca52bd2..e105b7d 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -71,8 +71,6 @@ v1.post("/login", (req: Request, res: Response): void => { // Get info from body const {username, password} = req.body; - console.log("I GOT HIT BABY!!!"); - // Get required info from the environment and validate // TODO: Make sure the ENV is sourced through docker compose! if (process.env["FILE_GOPHERNEST_USER"] === username && validateHash(password, process.env["FILE_GOPHERNEST_PASSWORD"] as string)) { diff --git a/frontend/src/components/LoginForm.jsx b/frontend/src/components/LoginForm.jsx index 0a01230..5bdc0a9 100644 --- a/frontend/src/components/LoginForm.jsx +++ b/frontend/src/components/LoginForm.jsx @@ -9,7 +9,7 @@ export default function LoginForm() { * URL To the backend web server * @type {string} */ - const backendUrl = "http://172.19.0.2:5000"; + const backendUrl = "https://backend.gophernest.net"; const [username, setUsername] = useState(""); const [remember, setRemember] = useState(false); diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx index 02baa00..5017204 100644 --- a/frontend/src/pages/Dashboard.jsx +++ b/frontend/src/pages/Dashboard.jsx @@ -8,13 +8,13 @@ import Editor from "../components/Editor.jsx"; export default function Dashboard() { // Store the default path - const defaultPath = ["home", "azpect", "Documents"]; + const defaultPath = ["media", "vault"]; /** * URL To the backend web server * @type {string} */ - const backendUrl = "http://172.19.0.2:5000"; + const backendUrl = "https://backend.gophernest.net"; const [token, setToken] = useState(null); const [path, setPath] = useState([...defaultPath]);