commerce
commerce copied to clipboard
Can't deploy to vercel
Local build and development environment is working fine. Also tried to building locally and running it directly and was also working fine. Didn't change anything on the repo. Environment variables are all set and I also tried deploying directly from the vercel template and got the same error.
This is the deployment log:
23:22:29.105 Running build in Washington, D.C., USA (East) – iad1
23:22:29.105 Build machine configuration: 2 cores, 8 GB
23:22:29.115 Cloning github.com/alessrdrgz/rotmg-services (Branch: main, Commit: 3f9791a)
23:22:29.116 Skipping build cache, deployment was triggered without cache.
23:22:29.447 Cloning completed: 332.000ms
23:22:29.887 Running "vercel build"
23:22:30.300 Vercel CLI 48.10.5
23:22:30.993 Detected `pnpm-lock.yaml` 9 which may be generated by [email protected] or [email protected]
23:22:30.993 Using [email protected] based on project creation date
23:22:30.993 To use [email protected], manually opt in using corepack (https://vercel.com/docs/deployments/configure-a-build#corepack)
23:22:31.024 Installing dependencies...
23:22:31.669 Lockfile is up to date, resolution step is skipped
23:22:31.703 Progress: resolved 1, reused 0, downloaded 0, added 0
23:22:31.721 Packages: +83
23:22:31.722 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:22:32.705 Progress: resolved 83, reused 0, downloaded 19, added 5
23:22:33.747 Progress: resolved 83, reused 0, downloaded 29, added 8
23:22:34.867 Progress: resolved 83, reused 0, downloaded 30, added 8
23:22:35.869 Progress: resolved 83, reused 0, downloaded 44, added 12
23:22:36.873 Progress: resolved 83, reused 0, downloaded 57, added 16
23:22:37.875 Progress: resolved 83, reused 0, downloaded 80, added 23
23:22:38.876 Progress: resolved 83, reused 0, downloaded 83, added 29
23:22:39.878 Progress: resolved 83, reused 0, downloaded 83, added 44
23:22:40.640 Progress: resolved 83, reused 0, downloaded 83, added 83, done
23:22:40.685 .../[email protected]/node_modules/sharp install$ node install/check
23:22:40.804 .../[email protected]/node_modules/sharp install: Done
23:22:40.882
23:22:40.882 dependencies:
23:22:40.883 + @headlessui/react 2.2.0
23:22:40.883 + @heroicons/react 2.2.0
23:22:40.883 + clsx 2.1.1
23:22:40.883 + geist 1.3.1
23:22:40.883 + next 15.3.0-canary.13
23:22:40.883 + react 19.0.0
23:22:40.883 + react-dom 19.0.0
23:22:40.883 + sonner 2.0.1
23:22:40.883
23:22:40.883 devDependencies:
23:22:40.883 + @tailwindcss/container-queries 0.1.1
23:22:40.883 + @tailwindcss/postcss 4.0.14
23:22:40.883 + @tailwindcss/typography 0.5.16
23:22:40.883 + @types/node 22.13.10
23:22:40.883 + @types/react 19.0.12
23:22:40.883 + @types/react-dom 19.0.4
23:22:40.883 + postcss 8.5.3
23:22:40.883 + prettier 3.5.3
23:22:40.883 + prettier-plugin-tailwindcss 0.6.11
23:22:40.883 + tailwindcss 4.0.14
23:22:40.883 + typescript 5.8.2
23:22:40.883
23:22:40.906 Done in 9.7s using pnpm v10.21.0
23:22:40.929 Detected Next.js version: 15.3.0-canary.13
23:22:40.937 Running "pnpm run build"
23:22:41.226
23:22:41.227 > @ build /vercel/path0
23:22:41.227 > next build
23:22:41.227
23:22:42.746 Attention: Next.js now collects completely anonymous telemetry regarding usage.
23:22:42.747 This information is used to shape Next.js' roadmap and prioritize features.
23:22:42.748 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
23:22:42.748 https://nextjs.org/telemetry
23:22:42.748
23:22:42.837 ▲ Next.js 15.3.0-canary.13
23:22:42.838 - Experiments (use with caution):
23:22:42.838 ✓ ppr
23:22:42.839 ✓ useCache
23:22:42.839 ✓ inlineCss
23:22:42.839
23:22:42.870 Creating an optimized production build ...
23:23:02.704 ✓ Compiled successfully
23:23:02.710 Linting and checking validity of types ...
23:23:07.536 Collecting page data ...
23:23:09.636 Generating static pages (0/12) ...
23:23:11.002 Generating static pages (3/12)
23:23:11.008 {
23:23:11.009 cause: 'AggregateError',
23:23:11.009 status: 500,
23:23:11.009 message: 'fetch failed',
23:23:11.009 query: '\n' +
23:23:11.009 ' query getMenu($handle: String!) {\n' +
23:23:11.009 ' menu(handle: $handle) {\n' +
23:23:11.009 ' items {\n' +
23:23:11.010 ' title\n' +
23:23:11.010 ' url\n' +
23:23:11.010 ' }\n' +
23:23:11.010 ' }\n' +
23:23:11.010 ' }\n'
23:23:11.010 }
23:23:11.010 Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
23:23:11.010 Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
23:23:11.011 Export encountered an error on /_not-found/page: /_not-found, exiting the build.
23:23:11.026 ⨯ Next.js build worker exited with code: 1 and signal: null
23:23:11.070 ELIFECYCLE Command failed with exit code 1.
23:23:11.092 Error: Command "pnpm run build" exited with 1
can i fix this issue if u assing it to me