Skip to content

Commit dade75a

Browse files
Fixed next.config.js
1 parent 6f6705e commit dade75a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

docs/next.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
const withNextra = require('nextra')({
2-
theme: 'nextra-theme-docs',
3-
themeConfig: './theme.config.tsx',
4-
})
1+
async function withNextra() {
2+
const nextra = (await import("nextra")).default
3+
return nextra({
4+
theme: "nextra-theme-docs",
5+
themeConfig: "./theme.config.tsx"
6+
})
7+
}
58

69
module.exports = withNextra()

0 commit comments

Comments
 (0)