From d910b08c06a667f309e73c89e19f0c21e7750c94 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sun, 17 Sep 2023 13:36:39 -0500 Subject: [PATCH] Go back to using jsx for config --- theme.config.tsx => theme.config.jsx | 5 +---- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) rename theme.config.tsx => theme.config.jsx (85%) diff --git a/theme.config.tsx b/theme.config.jsx similarity index 85% rename from theme.config.tsx rename to theme.config.jsx index 357d3d3..295ec1f 100644 --- a/theme.config.tsx +++ b/theme.config.jsx @@ -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 diff --git a/tsconfig.json b/tsconfig.json index f54d304..575ca2b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }