mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
convert web to static export
This commit is contained in:
@@ -5,6 +5,7 @@ const withMDX = createMDX();
|
||||
/** @type {import('next').NextConfig} */
|
||||
const config = {
|
||||
reactStrictMode: true,
|
||||
output: "export",
|
||||
};
|
||||
|
||||
export default withMDX(config);
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { source } from "@/lib/source";
|
||||
import { createFromSource } from "fumadocs-core/search/server";
|
||||
|
||||
export const { GET } = createFromSource(source);
|
||||
export const revalidate = false;
|
||||
|
||||
export const { staticGET: GET } = createFromSource(source);
|
||||
|
||||
@@ -12,7 +12,13 @@ export default function Layout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="en" className={inter.className} suppressHydrationWarning>
|
||||
<body className="flex flex-col min-h-screen relative bg-black">
|
||||
<RootProvider>
|
||||
<RootProvider
|
||||
search={{
|
||||
options: {
|
||||
type: "static",
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Navbar />
|
||||
<div className="relative z-10 bg-zinc-50 dark:bg-zinc-950 pt-20 transition-colors duration-300 overflow-hidden">
|
||||
<Suspense fallback={<LoadingSpinner />}>{children}</Suspense>
|
||||
|
||||
Reference in New Issue
Block a user