From 58cbc902c14fb66b92a7cc1b2de9929da3f86d9d Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Mon, 21 Jul 2025 22:24:51 +0530 Subject: [PATCH] chore(web): add banner to docs and fix theme flash --- apps/web/package.json | 1 - apps/web/src/app/docs/layout.tsx | 12 +++++++++--- apps/web/src/app/layout.tsx | 7 ++++++- apps/web/wrangler.jsonc | 1 + package.json | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 5678599..f6ae27e 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -3,7 +3,6 @@ "version": "0.0.0", "private": true, "scripts": { - "prebuild": "bun run generate-analytics && bun run generate-schema", "build": "next build", "dev": "next dev --turbopack", "start": "next start", diff --git a/apps/web/src/app/docs/layout.tsx b/apps/web/src/app/docs/layout.tsx index 27dd5de..0316d8d 100644 --- a/apps/web/src/app/docs/layout.tsx +++ b/apps/web/src/app/docs/layout.tsx @@ -1,3 +1,4 @@ +import { Banner } from "fumadocs-ui/components/banner"; import { DocsLayout } from "fumadocs-ui/layouts/docs"; import type { ReactNode } from "react"; import { baseOptions } from "@/app/layout.config"; @@ -5,8 +6,13 @@ import { source } from "@/lib/source"; export default function Layout({ children }: { children: ReactNode }) { return ( - - {children} - + <> + + ⚠️ WORK IN PROGRESS DONT TAKE REFERENCE!!! + + + {children} + + ); } diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 0888e57..1745f1c 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -1,7 +1,7 @@ export const dynamic = "force-static"; import { RootProvider } from "fumadocs-ui/provider"; -import type { Metadata } from "next"; +import type { Metadata, Viewport } from "next"; import { Poppins } from "next/font/google"; import { NuqsAdapter } from "nuqs/adapters/next/app"; import type { ReactNode } from "react"; @@ -92,6 +92,11 @@ export const metadata: Metadata = { }, }; +export const viewport: Viewport = { + width: "device-width", + initialScale: 1.0, +}; + export default function Layout({ children }: { children: ReactNode }) { return ( diff --git a/apps/web/wrangler.jsonc b/apps/web/wrangler.jsonc index 78a8e83..52c8095 100644 --- a/apps/web/wrangler.jsonc +++ b/apps/web/wrangler.jsonc @@ -3,6 +3,7 @@ "name": "better-t-stack", "compatibility_date": "2025-07-13", "compatibility_flags": ["nodejs_compat"], + "keep_names": false, "assets": { "directory": ".open-next/assets", "binding": "ASSETS" diff --git a/package.json b/package.json index e6ae5c4..c8ed6c4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "check": "turbo check", "format": "biome check --write .", "publish-packages": "turbo run build --filter=create-better-t-stack && changeset publish", - "deploy:web": "turbo run --filter=web deploy" + "deploy:web": "bun run --filter=web generate-analytics && bun run --filter=web generate-schema && turbo run --filter=web deploy" }, "devDependencies": { "@biomejs/biome": "2.1.2",