An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available.
Downloading 123 deployment files...
...
Error occurred prerendering page "/assessments/evaluator-form". Read more: https://nextjs.org/docs/messages/prerender-error
Export encountered an error on /assessments/evaluator-form/page: /assessments/evaluator-form, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
I found the issue. The error is clear: useSearchParams() should be wrapped in a suspense boundary at page "/assessments/evaluator-form". In Next.js 16, when using useSearchParams() in a Client Component at the page level, it must be wrapped in a Suspense boundary. Let me fix the evaluator-form page:
Now I'll fix this by wrapping the component that uses useSearchParams() in a Suspense boundary. The best approach is to create a wrapper component and use Suspense:
Now I need to create the evaluator-form-content component that uses the searchParams inside the Suspense boundary:
The issue is now fixed. The problem was that in Next.js 16, useSearchParams() triggers a Client-Side Rendering (CSR) bailout and must be wrapped in a Suspense boundary when used in a page component. I've split the page into two components:
useSearchParams() inside the boundaryThis allows Next.js to properly handle the dynamic routing during build time while keeping the interactive functionality intact. The build should now succeed.
for me dashboard seems to be fine, but Evaluator screen please cross check Anthropometric measurements and OFFICE ERGONOMICS EVALUATION RECOMMENDATIONS/SOLUTIONS , Employee Corrective actions and Facility changes not included Please think through and add those cotrols before final submission and if you keep cuurent assissment score right side section by splitting page 1/3 it looks good i feel
I understand. Let me check the current evaluator form and the comprehensive form to see what Anthropometric measurements and recommendations sections should include:
Good! Now let me read more of the comprehensive form to see the exact fields needed:
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available.
Downloading 124 deployment files...
...
Error occurred prerendering page "/assessments/recommendations". Read more: https://nextjs.org/docs/messages/prerender-error
Export encountered an error on /assessments/recommendations/page: /assessments/recommendations, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
You can send messages while the preview loads