mirror of https://github.com/almqv/wych.dev
parent
4d672e134a
commit
40e52a23e5
@ -0,0 +1,10 @@ |
||||
const withMDX = require('@next/mdx')() |
||||
|
||||
/** @type {import('next').NextConfig} */ |
||||
const nextConfig = { |
||||
// Configure `pageExtensions` to include MDX files
|
||||
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"], |
||||
// Optionally, add any other Next.js config below
|
||||
}; |
||||
|
||||
module.exports = withMDX(nextConfig); |
@ -1,4 +0,0 @@ |
||||
/** @type {import('next').NextConfig} */ |
||||
const nextConfig = {}; |
||||
|
||||
export default nextConfig; |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@ |
||||
const Layout = ({ |
||||
children, |
||||
}: Readonly<{ |
||||
children: React.ReactNode; |
||||
}>) => <div className="prose dark:prose-dark max-w-screen-lg">{children}</div>; |
||||
|
||||
export default Layout; |
@ -1,5 +1,5 @@ |
||||
import Image from "next/image"; |
||||
|
||||
export default function Home() { |
||||
return <></>; |
||||
return <h1>TEST</h1>; |
||||
} |
||||
|
@ -0,0 +1,9 @@ |
||||
"use client"; |
||||
|
||||
import * as React from "react"; |
||||
import { ThemeProvider as NextThemesProvider } from "next-themes"; |
||||
import { type ThemeProviderProps } from "next-themes/dist/types"; |
||||
|
||||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) { |
||||
return <NextThemesProvider {...props}>{children}</NextThemesProvider>; |
||||
} |
@ -0,0 +1,7 @@ |
||||
import type { MDXComponents } from "mdx/types"; |
||||
|
||||
export function useMDXComponents(components: MDXComponents): MDXComponents { |
||||
return { |
||||
...components, |
||||
}; |
||||
} |
Loading…
Reference in new issue