Skip to content

Commit 3a7a098

Browse files
author
Dan Costello
committed
Static
1 parent 1d694de commit 3a7a098

5 files changed

Lines changed: 27 additions & 15 deletions

File tree

app/api/search/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
export const dynamic = 'force-static';
2+
13
import { source } from '@/lib/source';
24
import { createFromSource } from 'fumadocs-core/search/server';
35

4-
export const { GET } = createFromSource(source);
6+
export const { staticGET: GET } = createFromSource(source);

app/global.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,32 @@
1111
/* --default-font-family: ; */
1212

1313
--color-fd-background: hsl(0, 0%, 98%);
14-
--color-fd-foreground: hsl(0, 0%, 3.9%);
14+
--color-fd-foreground: hsl(0, 0%, 15%);
1515
--color-fd-muted: hsl(220, 90%, 96.1%);
16-
--color-fd-muted-foreground: hsl(0, 0%, 30.1%);
16+
--color-fd-muted-foreground: hsl(0, 0%, 35%);
1717
--color-fd-popover: hsl(0, 0%, 98%);
18-
--color-fd-popover-foreground: hsl(0, 0%, 15.1%);
18+
--color-fd-popover-foreground: hsl(0, 0%, 15%);
1919
--color-fd-card: hsl(220, 50%, 98%);
20-
--color-fd-card-foreground: hsl(0, 0%, 3.9%);
21-
--color-fd-border: hsl(220, 50%, 89.8%);
22-
--color-fd-primary: hsl(210, 80%, 20.2%);
20+
--color-fd-card-foreground: hsl(0, 0%, 15%);
21+
--color-fd-border: hsl(220, 50%, 90%);
22+
--color-fd-primary: hsl(210, 80%, 20%);
2323
--color-fd-primary-foreground: hsl(0, 0%, 98%);
24-
--color-fd-secondary: hsl(220, 90%, 96.1%);
25-
--color-fd-secondary-foreground: hsl(0, 0%, 9%);
26-
--color-fd-accent: hsl(220, 50%, 94.1%);
24+
--color-fd-secondary: hsl(220, 90%, 96%);
25+
--color-fd-secondary-foreground: hsl(0, 0%, 35%);
26+
--color-fd-accent: hsl(220, 50%, 94%);
2727
--color-fd-accent-foreground: hsl(0, 0%, 9%);
28-
--color-fd-ring: hsl(220, 100%, 63.9%);
28+
--color-fd-ring: hsl(220, 100%, 64%);
2929
}
3030

3131
.dark {
3232
--color-fd-background: hsl(220, 60%, 8%);
33-
--color-fd-foreground: hsl(220, 60%, 94.5%);
33+
--color-fd-foreground: hsl(220, 60%, 94%);
3434
--color-fd-muted: hsl(220, 50%, 10%);
3535
--color-fd-muted-foreground: hsl(220, 30%, 65%);
3636
--color-fd-popover: hsl(220, 50%, 10%);
37-
--color-fd-popover-foreground: hsl(220, 60%, 94.5%);
37+
--color-fd-popover-foreground: hsl(220, 60%, 94%);
3838
--color-fd-card: hsla(220, 56%, 15%, 0.4);
39-
--color-fd-card-foreground: hsl(220, 60%, 94.5%);
39+
--color-fd-card-foreground: hsl(220, 60%, 94%);
4040
--color-fd-border: hsla(220, 50%, 50%, 0.2);
4141
--color-fd-primary: hsl(205, 100%, 85%);
4242
--color-fd-primary-foreground: hsl(0, 0%, 9%);

app/layout.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ export default function Layout({ children }: { children: ReactNode }) {
66
return (
77
<html lang="en" suppressHydrationWarning>
88
<body className="flex flex-col min-h-screen">
9-
<RootProvider>{children}</RootProvider>
9+
<RootProvider
10+
search={{
11+
options: {
12+
type: 'static',
13+
},
14+
}}
15+
>
16+
{children}
17+
</RootProvider>
1018
</body>
1119
</html>
1220
);

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const isDev = process.env.NODE_ENV === 'development';
77
/** @type {import('next').NextConfig} */
88
const config = {
99
reactStrictMode: true,
10+
output: 'export',
1011
images: {
1112
unoptimized: isDev,
1213
remotePatterns: [

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"build": "next build",
77
"dev": "next dev --turbo",
88
"start": "next start",
9+
"clean": "rm -rf .next",
910
"postinstall": "fumadocs-mdx"
1011
},
1112
"dependencies": {

0 commit comments

Comments
 (0)