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>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false,
|
||||
"ignore": [".next", "dist", ".source"]
|
||||
"ignore": [".next", "dist", ".source", "out"]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
|
||||
2
bun.lock
2
bun.lock
@@ -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
10462
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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/*"]
|
||||
|
||||
Reference in New Issue
Block a user