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 commit is contained in:
parent
8d05864c15
commit
f16e874f31
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user