Need help with hosting error

Hi guys im creating a next.js project using fuma docs.when i try deploy im getting this error

    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async a (/vercel/path0/.next/server/app/docs/[[...slug]]/page.js:41:2024)
    at async /vercel/path0/.next/server/app/sitemap.xml/route.js:1:11295
    at async Promise.all (index 1)
    at async E (/vercel/path0/.next/server/app/sitemap.xml/route.js:1:11242)
    at async B (/vercel/path0/.next/server/app/sitemap.xml/route.js:1:11733)
    at async tf.do (/vercel/path0/node_modules/.pnpm/next@15.3.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:18786)
    at async tf.handle (/vercel/path0/node_modules/.pnpm/next@15.3.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:23727)
    at async exportAppRoute (/vercel/path0/node_modules/.pnpm/next@15.3.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/export/routes/app-route.js:94:26)
Export encountered an error on /sitemap.xml/route: /sitemap.xml, 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
Exiting build container

can somebody help me fix it please
please feel free to ask for any referance

Hey @umairfaiser thanks for posting!

When i ran into this, it was actually because i was missing proper environment variables or a config setup for the sitemap. I still had a url pointing to localhost and caused this issue. Can you give your envrionment setup on Vercel a check?

1 Like

i checked the variables they are all set i mean i dont even have variables in my app.for the urls i have both the urls the localhost and the deploying url.i still cant figure out wats going wrong..

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