Go back to using jsx for config

This commit is contained in:
Filip Tibell 2023-09-17 13:36:39 -05:00
parent 3a33284694
commit d910b08c06
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -1,9 +1,8 @@
import React from "react"
import { useRouter } from "next/router"
import type { DocsThemeConfig } from "nextra-theme-docs"
const config: DocsThemeConfig = {
export default {
docsRepositoryBase: "https://github.com/lune-org/docs/blob/main",
useNextSeoProps() {
const { asPath } = useRouter()
@ -36,5 +35,3 @@ const config: DocsThemeConfig = {
</>
),
}
export default config

View file

@ -15,6 +15,6 @@
"isolatedModules": true,
"jsx": "preserve"
},
"include": ["next-env.d.ts", "theme.config.tsx", "**/*.ts", "**/*.tsx"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}