diff --git a/docs/app/guides/display/mafs/page.tsx b/docs/app/guides/display/mafs/page.tsx index 7144921a..61d1b745 100644 --- a/docs/app/guides/display/mafs/page.tsx +++ b/docs/app/guides/display/mafs/page.tsx @@ -7,11 +7,11 @@ import * as ZoomExample from "guide-examples/display/viewbox/ZoomExample" import * as StretchViewboxExample from "guide-examples/display/viewbox/StretchViewbox" import Code from "components/Code" -export async function generateMetadata() { - return { - title: "Mafs", - } -} +// export async function generateMetadata() { +// return { +// title: "Mafs", +// } +// } function MafsPage() { return ( diff --git a/docs/app/guides/get-started/hello-f-x/page.tsx b/docs/app/guides/get-started/hello-f-x/page.tsx index 37c67a3a..d97ecc67 100644 --- a/docs/app/guides/get-started/hello-f-x/page.tsx +++ b/docs/app/guides/get-started/hello-f-x/page.tsx @@ -5,6 +5,7 @@ import * as Subdivions from "guide-examples/hello-fx/subdivisions" import * as Sine from "guide-examples/hello-fx/sine" import * as SinePi from "guide-examples/hello-fx/sine-pi" import * as Draggable from "guide-examples/hello-fx/draggable" + import type { Metadata } from "next" export const metadata: Metadata = { diff --git a/docs/components/CodeAndExample.tsx b/docs/components/CodeAndExample.tsx index eef6f371..348a9815 100644 --- a/docs/components/CodeAndExample.tsx +++ b/docs/components/CodeAndExample.tsx @@ -16,7 +16,7 @@ interface Props { function CodeAndExample({ collapsible: collapsibleProp = true, example, clean = true }: Props) { const Component = example.default - let source = example.sourceCode! + let source = example.sourceCode ?? "" if (clean) { const remove = [ diff --git a/docs/next.config.js b/docs/next.config.js index 1908def2..4e2493ae 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -1,8 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: ["mafs"], - webpack: (config, { isServer }) => { - // Add a loader that attaches source code to files in guide-examples + + webpack: (config) => { config.module.rules.push({ test: /\.tsx?$/, include: /guide-examples/,