Skip to content

Commit 54298db

Browse files
committed
Make live preview absolute path
1 parent 093e42e commit 54298db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/collections/Projects.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export const Projects: CollectionConfig = {
140140
secret: PAYLOAD_SECRET,
141141
})
142142

143-
return `/draft?${params.toString()}`
143+
console.log(process.env.NEXT_PUBLIC_PAYLOAD_URL)
144+
145+
return `${process.env.NEXT_PUBLIC_PAYLOAD_URL}/draft?${params.toString()}`
144146
},
145147
},
146148
},

0 commit comments

Comments
 (0)