Skip to content

Commit 58cbc90

Browse files
chore(web): add banner to docs and fix theme flash
1 parent 73be8bc commit 58cbc90

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

apps/web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"prebuild": "bun run generate-analytics && bun run generate-schema",
76
"build": "next build",
87
"dev": "next dev --turbopack",
98
"start": "next start",

apps/web/src/app/docs/layout.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1+
import { Banner } from "fumadocs-ui/components/banner";
12
import { DocsLayout } from "fumadocs-ui/layouts/docs";
23
import type { ReactNode } from "react";
34
import { baseOptions } from "@/app/layout.config";
45
import { source } from "@/lib/source";
56

67
export default function Layout({ children }: { children: ReactNode }) {
78
return (
8-
<DocsLayout tree={source.pageTree} {...baseOptions}>
9-
{children}
10-
</DocsLayout>
9+
<>
10+
<Banner variant="rainbow">
11+
⚠️ WORK IN PROGRESS DONT TAKE REFERENCE!!!
12+
</Banner>
13+
<DocsLayout tree={source.pageTree} {...baseOptions}>
14+
{children}
15+
</DocsLayout>
16+
</>
1117
);
1218
}

apps/web/src/app/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const dynamic = "force-static";
22

33
import { RootProvider } from "fumadocs-ui/provider";
4-
import type { Metadata } from "next";
4+
import type { Metadata, Viewport } from "next";
55
import { Poppins } from "next/font/google";
66
import { NuqsAdapter } from "nuqs/adapters/next/app";
77
import type { ReactNode } from "react";
@@ -92,6 +92,11 @@ export const metadata: Metadata = {
9292
},
9393
};
9494

95+
export const viewport: Viewport = {
96+
width: "device-width",
97+
initialScale: 1.0,
98+
};
99+
95100
export default function Layout({ children }: { children: ReactNode }) {
96101
return (
97102
<html lang="en" className={poppins.className} suppressHydrationWarning>

apps/web/wrangler.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "better-t-stack",
44
"compatibility_date": "2025-07-13",
55
"compatibility_flags": ["nodejs_compat"],
6+
"keep_names": false,
67
"assets": {
78
"directory": ".open-next/assets",
89
"binding": "ASSETS"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"check": "turbo check",
1313
"format": "biome check --write .",
1414
"publish-packages": "turbo run build --filter=create-better-t-stack && changeset publish",
15-
"deploy:web": "turbo run --filter=web deploy"
15+
"deploy:web": "bun run --filter=web generate-analytics && bun run --filter=web generate-schema && turbo run --filter=web deploy"
1616
},
1717
"devDependencies": {
1818
"@biomejs/biome": "2.1.2",

0 commit comments

Comments
 (0)