Home  >  Q&A  >  body text

An error occurred while deploying NextJS app to Vercel.

<p>Hi everyone, I'm trying to deploy a NEXT-JS app to Vercel, but very annoyingly, it keeps giving the following error even though I have app and pages folders in the project root. I tried to find a solution on Google but I couldn't find one with the same situation as mine. </p><p><br /></p>
P粉311464935P粉311464935473 days ago518

reply all(1)I'll reply

  • P粉828463673

    P粉8284636732023-07-28 09:38:10

    Looks like you have disabled the app directory functionality in your Next configuration.

    const nextConfig = {
      experimental: {
        appDir: false,
      }
    }

    All your page content is currently located in the app directory. Therefore, the build process may not be able to find it.

    reply
    0
  • Cancelreply