Skip to content

v3.0 deployed on Vercel: There was an error initializing Payload #6700

Closed Answered by DanRibbens
wilbertcaba asked this question in Q&A
Discussion options

You must be logged in to vote

Are you able to access the admin UI on vercel? Using the url you provided, I'm not able to get the admin to load at all: https://wilbert-caba-portfolio-git-featur-c0d2e2-wilbert-cabas-projects.vercel.app/admin which tells me you have other issues.

Aside from that, you should be able to use a server component and avoid using fetch. In a client component, using fetch should be fine but you need to add 'Content-Type': 'application/json' headers to your fetch request.

Please verify that everything else is working besides your client component issue.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@wilbertcaba
Comment options

Answer selected by wilbertcaba
Comment options

You must be logged in to vote
1 reply
@wilbertcaba
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #6673 on June 10, 2024 12:56.