#Best way to deploy payload + nextjs?

1 messages · Page 1 of 1 (latest)

vernal prism
#

Hey everyone, I have a personal website that I wish to add blogs too. It's a Next 14 app deployed on vercel. I want to keep things simple and host next + payload on the same server. What's the best way to go about that?

As per this demo, it doesn't seem I can use next 14 with payload yet: https://github.com/payloadcms/next-payload-demo

Is there another way or do I just downgrade to next 13?

GitHub

Contribute to payloadcms/next-payload-demo development by creating an account on GitHub.

icy skiffBOT
rustic magnet
#

They (Payload) were going to offer a free tier for their Cloud hosting but they changed their minds - no free tier. Apparently the only way to deploy is to use a Node server for Payload and possibly Vercel or another hosting solution for Next.js

#

If you can wait a month or two there's talk they'll have Payload v3 out in Beta

vernal prism
#

Damn okay
Ig I’ll put it on an ec2 or something for the time being and keep the frontend separate

icy skiffBOT
covert lake
#

You can actually deploy payload in nextjs on vercel specifically next 13.5.6 works for me,but you have to setup storage,database and email by yourself.

vernal prism
rustic magnet
#

@covert lake Did you get any errors within Payload after you deployed on Vercel? What DB are you using?

#

@covert lake Also did you deploy the ecommerce Payload app? Do you remember which repo you cloned from?

covert lake
rustic magnet
#

Thank you I sure will take a look!

rustic magnet
#

I tried updating my Next version to 13.5.6 and built locally successfully, but pushed to Github and rebuilt on Vercel and I still get the error

Failed to load resource: the server responded with a status of 404 ()
https://thebeatentrail-supabase.vercel.app/api/users/me

I'll keep trying but thank you Peter

near sparrow
#

For personal sites Railway can be a good option for NodeJS. Could host both there and the database.

vernal prism
#

I am considering hosting payload on fly.io tho