Next.js Discord

Discord Forum

App Directory Confusion on Vercel

Unanswered
Himalayan posted this in #help-forum
Open in Discord
HimalayanOP
Hey everyone, currently running Next 13.4.7 with the Pages directory. Everything runs correctly on my local machine (tale as old as time), but when I try to deploy to production on Vercel I get this error:

web:build: ./pages/layout.tsx
web:build: ReactServerComponentsError:
web:build:
web:build: "getStaticProps" is not supported in app/. Read more: https://nextjs.org/docs/app/building-your-application/data-fetching

It seems that vercel thinks I am running the app/ directory, but I am still using the pages directory. Has anyone run into this?

0 Replies