Error on Vercel deployment - Next.js Commerce template

When running build process on Vercel Deployment, I get this error

Failed to build /search/page: /search (attempt 1 of 3) because it took more than 60 seconds. Retrying again shortly. Failed to build /search/page: /search (attempt 2 of 3) because it took more than 60 seconds. Retrying again shortly. Failed to build /search/page: /search after 3 attempts. Export encountered an error on /search/page: /search, exiting the build. ⨯ Static worker exited with code: 1 and signal: null ELIFECYCLE  Command failed with exit code 1. Error: Command "pnpm run build" exited with 1

In localhost the build process works fine.

any help?

Are you able to share the code/repo?
Is this just the commerce template as is with no changes?

1 Like

Cross-posting this community post in case it’s helpful as well:

Yes, with no changes.

Here is the code/repo:
(GitHub - alejandr0bovino/nextjs-commerce)

I had forgotten to set the env vars.

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.