Next.js Deployment Expert Needed

Job ID: 39113913

Budget: $10 – $30 USD

I'm facing some build issues with my Next.js project and need a professional to assist me with the deployment to AWS Amplify.


at b (.next/server/chunks/2370.js:32:5295)

at j (.next/server/chunks/2370.js:32:5738) {

description: "Route /Components/Coach/Comment couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",

digest: 'DYNAMIC_SERVER_USAGE'

}

Error fetching session: Error: Dynamic server usage: Route /Components/Header couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error

at m (.next/server/chunks/638.js:1:41158)

at u (.next/server/chunks/6.js:25:153027)

at s (.next/server/chunks/6.js:25:19239)

at g (.next/server/chunks/2370.js:32:5189)

at b (.next/server/chunks/2370.js:32:5295)

at j (.next/server/chunks/2370.js:32:5738) {

description: "Route /Components/Header couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",

digest: 'DYNAMIC_SERVER_USAGE'

}

⨯ useSearchParams() should be wrapped in a suspense boundary at page "/Components/Header". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout

at i (/codebuild/output/src2355690953/src/eConnect/.next/server/chunks/4536.js:1:71391)

at p (/codebuild/output/src2355690953/src/eConnect/.next/server/chunks/4536.js:1:87987)

at b (/codebuild/output/src2355690953/src/eConnect/.next/server/chunks/2370.js:3:648)

at nO (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:45959)

at nI (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47734)

at nL (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:65533)

at nN (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:63164)

at n$ (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:46311)

at nI (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47780)

at nI (/codebuild/output/src2355690953/src/eConnect/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:62515)

Error occurred prerendering page "/Components/Header". Read more: https://nextjs.org/docs/messages/prerender-error

Export encountered an error on /Components/Header/page: /Components/Header, exiting the build.

2025-02-17T23:47:39.421Z [INFO]: Generating static pages (19/26)

2025-02-17T23:47:39.479Z [WARNING]: ⨯ Static worker exited with code: 1 and signal: null

2025-02-17T23:47:39.565Z [WARNING]: error Command failed with exit code 1.

2025-02-17T23:47:39.565Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

2025-02-17T23:47:39.579Z [ERROR]: !!! Build failed

2025-02-17T23:47:39.580Z [INFO]: Please read more about Amplify Hosting's support for SSR frameworks to find if your build failure is related to an unsupported feature: https://docs.aws.amazon.com/amplify/latest/userguide/amplify-ssr-framework-support.html. You may also find this troubleshooting guide useful: https://docs.aws.amazon.com/amplify/latest/userguide/troubleshooting-ssr-deployment.html

2025-02-17T23:47:39.580Z [ERROR]: !!! Error: Command failed with exit code 1

2025-02-17T23:47:39.580Z [INFO]: # Starting environment caching...

2025-02-17T23:47:39.580Z [INFO]: # Environment caching completed
Related categories: Node.js Git React.js Next.js