Skip to content

Does it work with plugin based on graphql ? #114

Open
@muscaiu

Description

@muscaiu

I'm using the gatsby-source-strapi plugin to query the data in my Gatsby FE app.

This config makes the preview button show up in the Strapi CMS.

module.exports = ({ env }) => ({
  'preview-button': {
    config: {
      contentTypes: [
        {
          uid: 'api::game.game',
          draft: {
            url: 'http://strapiurl:1337/api/preview',
            query: {
              type: 'game',
              slug: '{slug}',
            },
          },
          published: {
            url: 'https://gatsbyurl/games/{slug}',
          },
        },
      ],
    },
  },
});
Screenshot 2023-10-20 at 21 34 43

If i change the title for ex and i click the Preview button i don't see the new title.

Is this how it's supposed to work or is this because i'm using the gatsby-source-strapi plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions