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} */ /** @type {import('next').NextConfig} */
const config = { const config = {
reactStrictMode: true, reactStrictMode: true,
output: "export",
}; };
export default withMDX(config); export default withMDX(config);

View File

@@ -1,4 +1,6 @@
import { source } from "@/lib/source"; import { source } from "@/lib/source";
import { createFromSource } from "fumadocs-core/search/server"; 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 ( return (
<html lang="en" className={inter.className} suppressHydrationWarning> <html lang="en" className={inter.className} suppressHydrationWarning>
<body className="flex flex-col min-h-screen relative bg-black"> <body className="flex flex-col min-h-screen relative bg-black">
<RootProvider> <RootProvider
search={{
options: {
type: "static",
},
}}
>
<Navbar /> <Navbar />
<div className="relative z-10 bg-zinc-50 dark:bg-zinc-950 pt-20 transition-colors duration-300 overflow-hidden"> <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> <Suspense fallback={<LoadingSpinner />}>{children}</Suspense>

View File

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

View File

@@ -14,7 +14,7 @@
}, },
"apps/cli": { "apps/cli": {
"name": "create-better-t-stack", "name": "create-better-t-stack",
"version": "0.7.2", "version": "0.7.3",
"bin": { "bin": {
"create-better-t-stack": "dist/index.js" "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": { "scripts": {
"build": "turbo build", "build": "turbo build",
"dev": "turbo dev", "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", "check": "turbo check",
"prepare": "husky", "prepare": "husky",
"publish-packages": "turbo run build && changeset publish" "publish-packages": "turbo run build && changeset publish"
@@ -20,7 +23,7 @@
"*": ["biome check --write ."] "*": ["biome check --write ."]
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=20"
}, },
"packageManager": "bun@1.2.2", "packageManager": "bun@1.2.2",
"workspaces": ["apps/*"] "workspaces": ["apps/*"]