From d2fafdafdc81f42a9532633b4de28662ae57715d Mon Sep 17 00:00:00 2001 From: James Blair Date: Mon, 4 Dec 2023 15:16:03 +1300 Subject: [PATCH] Add basePath and assetPrefix for github pages. --- next.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/next.config.js b/next.config.js index eddbdd5..eda1386 100644 --- a/next.config.js +++ b/next.config.js @@ -11,6 +11,8 @@ module.exports = withBundleAnalyzer({ images: { unoptimized: true }, + basePath: '/ocp-app-delivery-workshop', + assetPrefix: '/ocp-app-delivery-workshop/', experimental: { esmExternals: true }, webpack: (config, { dev, isServer }) => { config.module.rules.push({