Skip to content

Commit 1ee6f7e

Browse files
authored
fix: gh pages paths (#871)
1 parent 50811e7 commit 1ee6f7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ import { createMDX } from 'fumadocs-mdx/next';
22

33
const withMDX = createMDX();
44

5+
const isGitHubPages = process.env.GITHUB_ACTIONS === 'true';
6+
57
/** @type {import('next').NextConfig} */
68
const config = {
79
reactStrictMode: true,
810
output: 'export',
11+
basePath: isGitHubPages ? '/react-native-quick-crypto' : '',
12+
assetPrefix: isGitHubPages ? '/react-native-quick-crypto/' : '',
913
};
1014

1115
export default withMDX(config);

0 commit comments

Comments
 (0)