Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Vercel Deployment Issues

default discord avatar
nclevengerlast year
2

I wanted to create a minimal payload / nextjs app without the template boilerplate, so I did

npx create-next-app@latest

then

yarn add @payloadcms/next-payload payload

and

yarn next-payload install

... the project runs fine both with

dev

and

build

+

start

... but when I deploy to vercel, I get the following error:


Error: Error: cannot find Payload config. Please create a configuration file located at the root of your current working directory called "payload.config.js" or "payload.config.ts".

I've tried duplicating the payload.config.ts file in multiple places, including the root as well as the

./payload

folder ... the

config

is being properly set (

configPath: path.resolve(__dirname, './payload/payload.config.ts'),

), and I've tried all variations of path in root, with and without the starting

./

... does anyone have any ideas?

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.