We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c753b39 commit a0b1751Copy full SHA for a0b1751
1 file changed
apps/cms/src/payload.config.ts
@@ -67,6 +67,10 @@ export default buildConfig({
67
],
68
collections: ['pages', 'posts'],
69
url: ({ data, collectionConfig, locale }) => {
70
+ // Live preview in not enabled in host mode
71
+ if (env.APP_MODE.type === 'host') {
72
+ return null;
73
+ }
74
if (collectionConfig?.slug === 'posts') {
75
return `posts/${data.slug}?locale=${locale.code}`;
76
}
0 commit comments