diff --git a/next.config.js b/next.config.js deleted file mode 100644 index 19727ea..0000000 --- a/next.config.js +++ /dev/null @@ -1,25 +0,0 @@ -const withNextra = require('nextra')({ - theme: 'nextra-theme-docs', - themeConfig: './theme.config.tsx', - latex: true, - defaultShowCopyCode: true -}) - -module.exports = withNextra( - { - async redirects() { - return [ - { - source: '/', - destination: '/home/explore', - permanent: true, - }, - ]; - }, - } -) - -// If you have other Next.js configurations, you can pass them as the parameter: -// module.exports = withNextra({ /* other next.js config */ }) -// Learn more: https://nextra.site/docs/guide - diff --git a/next.config.mjs b/next.config.mjs new file mode 100644 index 0000000..5fdf4a1 --- /dev/null +++ b/next.config.mjs @@ -0,0 +1,25 @@ +import nextra from 'nextra' + +const withNextra = nextra({ + theme: 'nextra-theme-docs', + themeConfig: './theme.config.tsx', + latex: true, + defaultShowCopyCode: true +}) + +/** @type {import('next').NextConfig} */ +const nextConfig = { + async redirects() { + return [ + { + source: '/', + destination: '/home/explore', + permanent: true + } + ] + } +} + +export default withNextra(nextConfig) + + diff --git a/theme.config.tsx b/theme.config.tsx index 7c6bf10..4411281 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -54,6 +54,16 @@ const config: DocsThemeConfig = { + +