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

This reverts commit f16e874f31.
This commit is contained in:
tobias 2024-07-06 22:19:52 +02:00
parent f16e874f31
commit fdfbce506e

View File

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