Skip to content

Commit

Permalink
Update next.config.mjs
Browse files Browse the repository at this point in the history
hardcoding assetPrefix
  • Loading branch information
DieselTech committed Nov 18, 2024
1 parent 2dce20e commit 2e4d492
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const withNextra = nextra({
themeConfig: './theme.config.tsx',
})

const isProduction = process.env.NODE_ENV === "production";
const assetPrefix = isProduction ? "/wiki" : "";
//const isProduction = process.env.NODE_ENV === "production";
//const assetPrefix = isProduction ? "/wiki" : "";

export default withNextra({
reactStrictMode: true,
trailingSlash: true,
assetPrefix,
basePath: assetPrefix,
// assetPrefix,
basePath: '/wiki',
output: "export",
images: {
unoptimized: true,
Expand Down

0 comments on commit 2e4d492

Please sign in to comment.