From b3c9f258de73194509f7f0468ce95be14ec07f35 Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sat, 28 Mar 2026 14:55:38 +0530 Subject: [PATCH] add: prod section at the end --- .../integration/(frameworks)/nextjs.mdx | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/(documentation)/integration/(frameworks)/nextjs.mdx b/docs/content/docs/(documentation)/integration/(frameworks)/nextjs.mdx index b31deb9b..bd9f7670 100644 --- a/docs/content/docs/(documentation)/integration/(frameworks)/nextjs.mdx +++ b/docs/content/docs/(documentation)/integration/(frameworks)/nextjs.mdx @@ -71,7 +71,7 @@ export type NextjsBkndConfig = FrameworkBkndConfig & { ## Serve the API -Create a helper file to instantiate the bknd instance and retrieve the API, importing the configurationfrom the `bknd.config.ts` file: +Create a helper file to instantiate the bknd instance and retrieve the API, importing the configuration from the `bknd.config.ts` file: ```ts title="src/bknd.ts" import { @@ -172,3 +172,26 @@ export default async function Home() { ); } ``` + +## Note for Production +If your admin component is not rendering and has a error like `Identifier 'b' has already been declared`, you will need to add these lines to your `next.config.(mjs|ts)` file: + +```ts +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + // ... + // for turbopack + experimental: { + turbopackMinify: false, + }, + + // for webpack + // webpack: (config) => { + // config.optimization.minimize = false; + // return config; + // }, +}; + +export default nextConfig; +```