> frontend@0.1.0 build > next build Gū¦ Next.js 16.2.4 (Turbopack) Creating an optimized production build ... npm : At line:1 char:1 + npm run build > build_output.txt 2>&1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError > Build error occurred Error: Turbopack build failed with 1 errors: ./FeatureFlag/frontend/app/flags/[id]/page.tsx:24:8 Next.js can't recognize the exported `generateStaticParams` field in route. App pages cannot use both "use client" and export function "generateStaticParams()". 22 | import { useEnv } from "@/components/env/env-provider"; 23 | > 24 | export function generateStaticParams() {  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 25 | return [{ id: "feature-alpha" }, { id: "feature-beta" }, { id: "feature-gamma" }];  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 26 | }  | ^ 27 | 28 | export default function FlagDetailPage() { 29 | const params = useParams(); The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compiled-time. Import traces: Client Component Browser: ./FeatureFlag/frontend/app/flags/[id]/page.tsx [Client Component Browser] ./FeatureFlag/frontend/app/flags/[id]/page.tsx [Server Component] Client Component SSR: ./FeatureFlag/frontend/app/flags/[id]/page.tsx [Client Component SSR] ./FeatureFlag/frontend/app/flags/[id]/page.tsx [Server Component] https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config at (./FeatureFlag/frontend/app/flags/[id]/page.tsx:24:8) at (https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config) npm error Lifecycle script `build` failed with error: npm error code 1 npm error path C:\Users\Mahak\FeatureFlag\frontend npm error workspace frontend@0.1.0 npm error location C:\Users\Mahak\FeatureFlag\frontend npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c next build