Skip to content

Commit

Permalink
Go back to using jsx for config
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Sep 17, 2023
1 parent 3a33284 commit d910b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions theme.config.tsx → theme.config.jsx
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -36,5 +35,3 @@ const config: DocsThemeConfig = {
</>
),
}

export default config
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit d910b08

Please sign in to comment.