Button not showing Collection Types
CreditonUy opened this issue · 2 comments
CreditonUy commented
module.exports = {
'preview-button': {
enabled: true,
config: {
contentTypes: [
{
uid: 'api::restaurant.restaurant',
draft: {
query: {
slug: 'restaurant',
},
},
published: {
basePath: 'restaurant',
},
},
],
},
},
};
STRAPI_PREVIEW_SECRET=12345678
STRAPI_PREVIEW_DRAFT_URL=http://localhost:1337/api/preview
STRAPI_PREVIEW_PUBLISHED_URL=http://localhost:8000
Error regarding preview-button config: Missing draft URL for api::restaurant.restaurant.
mattmilburn commented
Hi @CreditonUy It looks like you are configuring an older version of the plugin. Are you able to upgrade it to the latest version and try again?
mattmilburn commented
Closing due to inactivity