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
I installed the latest version using the create-payload-app script and selected the website template.
In development mode, everything works fine despite slow compilation times. However, in a production build (rm -rf .next && pnpm run build && pnpm run start), the live preview doesn't work. The only way to make it work is to publish the changes, switch to edit mode, and then back to live preview.
Is live preview expected to work in production?
P.S.: The documentation doesn't mention installing @libsql/client but I had to install it manually. Could this be another omission?
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
-
Hi,
I installed the latest version using the
create-payload-app
script and selected thewebsite
template.In development mode, everything works fine despite slow compilation times. However, in a production build (
rm -rf .next && pnpm run build && pnpm run start
), the live preview doesn't work. The only way to make it work is to publish the changes, switch to edit mode, and then back to live preview.Is live preview expected to work in production?
P.S.: The documentation doesn't mention installing
@libsql/client
but I had to install it manually. Could this be another omission?thanks
Matt
Beta Was this translation helpful? Give feedback.
All reactions