Revert "Remove baseURL from preview url"
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit f16e874f31
.
This commit is contained in:
parent
f16e874f31
commit
fdfbce506e
@ -43,7 +43,7 @@ export default buildConfig({
|
|||||||
},
|
},
|
||||||
livePreview: {
|
livePreview: {
|
||||||
url: ({ data, locale, collectionConfig }) =>
|
url: ({ data, locale, collectionConfig }) =>
|
||||||
`${collectionConfig?.slug || ''}/preview${data.path}${
|
`${process.env.BASE_URL}/${collectionConfig?.slug || ''}/preview${data.path}${
|
||||||
locale ? `?locale=${locale.code}` : ''
|
locale ? `?locale=${locale.code}` : ''
|
||||||
}`,
|
}`,
|
||||||
collections: [COLLECTION_SLUG_PAGE, COLLECTION_SLUG_POST],
|
collections: [COLLECTION_SLUG_PAGE, COLLECTION_SLUG_POST],
|
||||||
|
Loading…
Reference in New Issue
Block a user