Skip to content

Commit fa109de

Browse files
committed
feat(web): add production-ready Next.js config and UI registries
- Enable reactStrictMode and standalone output for Docker - Add conditional devIndicators and fetch logging (NEXT_PUBLIC_ENABLE_DEVTOOLS) - Skip TypeScript build errors (CI handles typecheck separately) - Add Aceternity UI and React Bits registries to shadcn config
1 parent 8d43c65 commit fa109de

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

apps/web/components.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@
1717
"lib": "@/lib",
1818
"hooks": "@/hooks"
1919
},
20-
"iconLibrary": "lucide"
20+
"iconLibrary": "lucide",
21+
"registries": {
22+
"@aceternity": "https://ui.aceternity.com/registry/{name}.json",
23+
"@react-bits": "https://reactbits.dev/r/{name}.json"
24+
}
2125
}

apps/web/next.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import type { NextConfig } from "next";
33

44
const withNextIntl = createNextIntlPlugin("./src/lib/i18n/request.ts");
55

6+
const isDev = process.env.NEXT_PUBLIC_ENABLE_DEVTOOLS === "true";
7+
68
const securityHeaders = [
79
{
810
key: "X-DNS-Prefetch-Control",
@@ -35,11 +37,24 @@ const securityHeaders = [
3537
];
3638

3739
const nextConfig: NextConfig = {
40+
output: "standalone",
3841
poweredByHeader: false,
42+
reactStrictMode: true,
3943
reactCompiler: true,
44+
devIndicators: isDev,
4045
images: {
4146
formats: ["image/avif", "image/webp"],
4247
},
48+
logging: isDev
49+
? {
50+
fetches: {
51+
fullUrl: true,
52+
},
53+
}
54+
: undefined,
55+
typescript: {
56+
ignoreBuildErrors: true,
57+
},
4358
experimental: {
4459
typedEnv: true,
4560
},

0 commit comments

Comments
 (0)