You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a proof-of-concept payload app we're using to evaluate for a project. Its a payload 3 app running within a nextjs website.
When I run the app up locally, I get live preview and content edits are immediately rendered in both the preview window and in the deployed app.
We also have the app deployed to vercel, but the behaviour here is quite different. I have to re-deploy the app to get content updates. Why is the behaviour different? What do I need to do to get the same behaviour on vercel?
I did read about revalidation, but that was on an older version of payload and it isn't specifically talked about in the docs so I wanted some clarification.
Edit: for anyone stumbling across this post - the half answer is Vercel's data cache. Disable it and you'll get new content after a cmd+r. Still trying to work out how to get "hot" reloading in the live preview.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
We have a proof-of-concept payload app we're using to evaluate for a project. Its a payload 3 app running within a nextjs website.
When I run the app up locally, I get live preview and content edits are immediately rendered in both the preview window and in the deployed app.
We also have the app deployed to vercel, but the behaviour here is quite different. I have to re-deploy the app to get content updates. Why is the behaviour different? What do I need to do to get the same behaviour on vercel?
I did read about revalidation, but that was on an older version of payload and it isn't specifically talked about in the docs so I wanted some clarification.
If it helps, here's my config:
Any help appreciated!
Edit: for anyone stumbling across this post - the half answer is Vercel's data cache. Disable it and you'll get new content after a cmd+r. Still trying to work out how to get "hot" reloading in the live preview.
Beta Was this translation helpful? Give feedback.
All reactions