0

The initialStatus argument for Prerender must be a natural number.

I am trying to deploy my next.js 13 app on vercel then I'm getting this error. If someone knows anything about this issue then please share your answers below

log while deploying on vercel : Log screenshot

And my next.config.js file looks like this:

/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    appDir: true,
  },
  images: {
    domains: ["res.cloudinary.com"],
  },
};

module.exports = nextConfig;

1 Answers1

0

I faced the same problem; in my case, I removed a try/catch statement inside of Route Handler, and then my project was built on Vercel.

Marcus Fonseca
  • 871
  • 9
  • 8