mattmilburn / strapi-plugin-preview-button

A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
MIT License
104 stars 38 forks source link

Button not showing Collection Types #58

Closed CreditonUy closed 1 year ago

CreditonUy commented 2 years ago

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 1 year ago

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 1 year ago

Closing due to inactivity