Remove baseURL from preview url
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobias 2024-07-06 22:11:46 +02:00
parent 8d05864c15
commit f16e874f31

View File

@ -43,7 +43,7 @@ export default buildConfig({
},
livePreview: {
url: ({ data, locale, collectionConfig }) =>
`${process.env.BASE_URL}/${collectionConfig?.slug || ''}/preview${data.path}${
`${collectionConfig?.slug || ''}/preview${data.path}${
locale ? `?locale=${locale.code}` : ''
}`,
collections: [COLLECTION_SLUG_PAGE, COLLECTION_SLUG_POST],