Skip to content

Commit

Permalink
Migrate/update to Nextra v3
Browse files Browse the repository at this point in the history
  • Loading branch information
admdly committed Sep 29, 2024
1 parent 00056ac commit 0036e9e
Show file tree
Hide file tree
Showing 44 changed files with 1,815 additions and 1,882 deletions.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
11 changes: 0 additions & 11 deletions next.config.js

This file was deleted.

21 changes: 21 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import nextra from 'nextra'
import { fileURLToPath } from 'url';

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
staticImage: true,
search: {
codeblocks: false
},
defaultShowCopyCode: true,
})

export default withNextra({
webpack(config) {
config.module.noParse = [
fileURLToPath(import.meta.resolve("./node_modules/@typescript/vfs/dist/vfs.esm.js")),
];
return config;
}
})
Loading

0 comments on commit 0036e9e

Please sign in to comment.