Skip to content

Commit 3914dcc

Browse files
committed
chore: fix type and lint checking errors
1 parent f330b3d commit 3914dcc

File tree

14 files changed

+18
-110
lines changed

14 files changed

+18
-110
lines changed

apps/developer-hub/next.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
import createBundleAnalyzer from "@next/bundle-analyzer";
21
import { createMDX } from "fumadocs-mdx/next";
32

4-
const withAnalyzer = createBundleAnalyzer({
5-
enabled: process.env.ANALYZE === "true",
6-
});
7-
83
const config = {
94
reactStrictMode: true,
105
pageExtensions: ["ts", "tsx", "mdx"],
@@ -56,4 +51,4 @@ const config = {
5651

5752
const withMDX = createMDX();
5853

59-
export default withAnalyzer(withMDX(config));
54+
export default withMDX(config);

apps/developer-hub/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"node": "22"
88
},
99
"scripts": {
10-
"build:vercel": "next build",
10+
"build": "next build",
1111
"build:analyze": "ANALYZE=true next build",
1212
"fix:format": "prettier --write .",
1313
"fix:lint:eslint": "eslint --fix .",
@@ -41,7 +41,6 @@
4141
"@cprussin/jest-config": "catalog:",
4242
"@cprussin/prettier-config": "catalog:",
4343
"@cprussin/tsconfig": "catalog:",
44-
"@next/bundle-analyzer": "catalog:",
4544
"@svgr/webpack": "catalog:",
4645
"@tailwindcss/postcss": "catalog:",
4746
"@types/jest": "catalog:",

apps/developer-hub/src/app/(docs)/[section]/[...slug]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
export { DocumentationPage as default } from "../../../../components/Pages/DocumentationPage";
22
import type { Metadata } from "next";
33
import { notFound } from "next/navigation";
4+
45
import { source } from "../../../../source";
56

6-
export async function generateStaticParams() {
7+
export function generateStaticParams() {
78
return source.generateParams();
89
}
910

apps/developer-hub/src/app/(docs)/[section]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
export { LandingPage as default } from "../../../components/Pages/LandingPage";
22
import type { Metadata } from "next";
33
import { notFound } from "next/navigation";
4+
45
import { source } from "../../../source";
56

6-
export async function generateStaticParams() {
7+
export function generateStaticParams() {
78
return source.generateParams();
89
}
910

apps/developer-hub/src/app/(docs)/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { DocsLayout } from "fumadocs-ui/layouts/docs";
22
import type { ReactNode } from "react";
3+
34
import { docsOptions } from "../../config/layout.config";
45

56
export default function Layout({ children }: { children: ReactNode }) {

apps/developer-hub/src/app/(homepage)/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { HomeLayout } from "fumadocs-ui/layouts/home";
22
import type { ReactNode } from "react";
3+
34
import { baseOptions } from "../../config/layout.config";
45

56
export default function Layout({ children }: { children: ReactNode }) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createFromSource } from "fumadocs-core/search/server";
2+
23
import { source } from "../../../source";
34

45
export const { GET } = createFromSource(source);

apps/developer-hub/src/components/Pages/BasePage/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
DocsTitle,
66
} from "fumadocs-ui/page";
77
import { notFound } from "next/navigation";
8+
89
import { getMDXComponents } from "../../../mdx-components";
910
import { source } from "../../../source";
1011

@@ -15,7 +16,7 @@ export function BasePage(props: { params: { slug: string[] } }) {
1516
const MDX = page.data.body;
1617

1718
return (
18-
<DocsPage toc={page.data.toc} full={page.data.full ?? false}>
19+
<DocsPage toc={page.data.toc} full={page.data.full}>
1920
<DocsTitle>{page.data.title}</DocsTitle>
2021
<DocsDescription>{page.data.description}</DocsDescription>
2122
<DocsBody>
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import type { ReactNode } from "react";
2-
31
import styles from "./index.module.scss";
42

5-
type Props = {
6-
children?: ReactNode;
7-
};
8-
9-
export const Homepage = ({ children }: Props) => {
3+
export const Homepage = () => {
104
return (
115
<div className={styles.landing}>
126
<h2>Homepage Landing Page</h2>
13-
{children}
147
</div>
158
);
169
};

apps/developer-hub/src/config/layout.config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
22
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
3+
34
import { source } from "../source";
45

56
export const baseOptions: BaseLayoutProps = {

0 commit comments

Comments
 (0)