Skip to content

Commit 093e42e

Browse files
committed
Fix live preview bug
1 parent 1030a9a commit 093e42e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/globals/Conclusion.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export const Conclusion: GlobalConfig = {
2020
secret: PAYLOAD_SECRET,
2121
})
2222

23-
console.log(params)
24-
2523
return `/draft?${params.toString()}`
2624
},
2725
},

src/payload.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default buildConfig({
3636
baseDir: path.resolve(dirname),
3737
},
3838
livePreview: {
39+
url: process.env.NEXT_PUBLIC_PAYLOAD_URL,
3940
breakpoints: [
4041
{
4142
label: 'Móvil',

0 commit comments

Comments
 (0)