From a9a89b5b4613785f29fc6b8e04df7edeb80dbdcb Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Thu, 13 Feb 2025 22:55:22 +0100 Subject: [PATCH] Update next.config.js --- web/next.config.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/next.config.js b/web/next.config.js index 445cc54..a5879e8 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,12 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export', + output: "export", // Forces static export for GitHub Pages + trailingSlash: true, // Fixes route issues images: { - unoptimized: true, + unoptimized: true, // Fixes image loading issues on GitHub Pages }, - assetPrefix: '/ProxMenux/', - basePath: '/ProxMenux', - trailingSlash: true, -}; + assetPrefix: process.env.NODE_ENV === "production" ? "/ProxMenux" : "", +} -module.exports = nextConfig; +module.exports = nextConfig