Skip to content

Commit b039c5c

Browse files
committed
Add server url to payload config
1 parent 28c0af5 commit b039c5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/collections/Projects.ts

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

143-
return `https://vectorinterior.design/${locale}/projects/${data.id}`
143+
return `/draft?${params.toString()}`
144144
},
145145
},
146146
},

src/payload.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,5 @@ export default buildConfig({
117117
payloadCloudPlugin(),
118118
// storage-adapter-placeholder
119119
],
120+
serverURL: process.env.NEXT_PUBLIC_PAYLOAD_URL || '',
120121
})

0 commit comments

Comments
 (0)