convert web to static export

This commit is contained in:
Aman Varshney
2025-02-15 15:56:10 +05:30
parent 8f8bf3cd8c
commit e5badb108c
8 changed files with 18 additions and 10467 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
22

View File

@@ -5,6 +5,7 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
output: "export",
};
export default withMDX(config);

View File

@@ -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);

View File

@@ -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>

View File

@@ -7,7 +7,7 @@
},
"files": {
"ignoreUnknown": false,
"ignore": [".next", "dist", ".source"]
"ignore": [".next", "dist", ".source", "out"]
},
"formatter": {
"enabled": true,

View File

@@ -14,7 +14,7 @@
},
"apps/cli": {
"name": "create-better-t-stack",
"version": "0.7.2",
"version": "0.7.3",
"bin": {
"create-better-t-stack": "dist/index.js"
},

10462
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,6 +4,9 @@
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"build:web": "turbo run build --filter=web",
"build:web:cloudflare": "bun install && bun run build:web",
"build:cli": "turbo run build --filter=cli",
"check": "turbo check",
"prepare": "husky",
"publish-packages": "turbo run build && changeset publish"
@@ -20,7 +23,7 @@
"*": ["biome check --write ."]
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"packageManager": "bun@1.2.2",
"workspaces": ["apps/*"]