Skip to content

Commit

Permalink
Nextra path does not include github repository name (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp authored Aug 1, 2024
1 parent 38620b1 commit 35d22e4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/docs-nextra/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,10 @@ const withNextra = nextraConfig({
// latex: true
// });
//
const isGithubActions = process.env.GITHUB_ACTIONS || false;

let assetPrefix = "";
let basePath = "";

if (isGithubActions) {
// trim off `<owner>/`
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, "");

assetPrefix = `/${repo}/`;
basePath = `/${repo}`;
}

export default withNextra({
output: "export",
assetPrefix,
Expand Down

0 comments on commit 35d22e4

Please sign in to comment.