Update next.config.js

This commit is contained in:
MacRimi 2025-02-13 22:55:22 +01:00 committed by GitHub
parent dbb6cfab27
commit a9a89b5b46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,11 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
output: 'export', output: "export", // Forces static export for GitHub Pages
trailingSlash: true, // Fixes route issues
images: { images: {
unoptimized: true, unoptimized: true, // Fixes image loading issues on GitHub Pages
}, },
assetPrefix: '/ProxMenux/', assetPrefix: process.env.NODE_ENV === "production" ? "/ProxMenux" : "",
basePath: '/ProxMenux', }
trailingSlash: true,
};
module.exports = nextConfig; module.exports = nextConfig