From 339aa93ec9432f7c5e96b913612b658c8004bab1 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:20:29 +0100 Subject: [PATCH] Update configuration to use environment variable for BASE_PATH and reflect changes in siteConfig --- frontend/next.config.mjs | 5 +++++ frontend/src/config/siteConfig.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index a8dc140e..96d5758f 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -14,7 +14,12 @@ const nextConfig = { ], }, + env: { + BASE_PATH: "/ProxmoxVE", + }, + output: "export", + basePath: process.env.BASE_PATH, }; export default nextConfig; diff --git a/frontend/src/config/siteConfig.tsx b/frontend/src/config/siteConfig.tsx index 947e8dc7..d32952c9 100644 --- a/frontend/src/config/siteConfig.tsx +++ b/frontend/src/config/siteConfig.tsx @@ -1,7 +1,7 @@ import { MessagesSquare, Scroll } from "lucide-react"; import { FaGithub } from "react-icons/fa"; -export const basePath = "ProxmoxVE"; +export const basePath = process.env.BASE_PATH; export const navbarLinks = [ {