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} */
|
/** @type {import('next').NextConfig} */
|
||||||
const config = {
|
const config = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
output: "export",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withMDX(config);
|
export default withMDX(config);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
2
bun.lock
2
bun.lock
@@ -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
10462
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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/*"]
|
||||||
|
|||||||
Reference in New Issue
Block a user