Replies: 3 comments 1 reply
-
|
Same issue here... trying to find some light in this darkness |
Beta Was this translation helpful? Give feedback.
-
|
In my case, the problem came from the preview iframe being requested over https while the preview was running on http, which caused an SSL mismatch. I updated the preview URL to use http, preview started working again. So it’s worth checking the preview URL. |
Beta Was this translation helpful? Give feedback.
-
Yes it should just work, but in production you need to configure the right live preview URL target with the right protocol as well as making sure CORS is configured. Closing for now as others mentioned fixing it with the HTTPS mismatch |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I installed the latest version using the
create-payload-appscript and selected thewebsitetemplate.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/clientbut I had to install it manually. Could this be another omission?thanks
Matt
Beta Was this translation helpful? Give feedback.
All reactions