34 viewsNext Amazona

When I deploy project on vercel then it will shows following errors

Error occurred prerendering page "/api/products/categories". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Connection failed!
at a (/vercel/path0/.next/server/app/api/admin/orders/[id]/deliver/route.js:1:3154)
at async d (/vercel/path0/.next/server/app/api/products/categories/route.js:1:518)
at async /vercel/path0/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:41960
Error occurred prerendering page "/api/products/seed". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Connection failed!
at a (/vercel/path0/.next/server/app/api/admin/orders/[id]/deliver/route.js:1:3154)
at async l (/vercel/path0/.next/server/app/api/products/seed/route.js:1:1978)
at async /vercel/path0/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:41960

ELIFECYCLE  Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1

urmila Asked question May 9, 2024