Nacelle provides both an API and an SDK for previewing unpublished data from Contentful and Sanity. For more information on getting started we recommend reading our documentation. Additionally, here are some common issues you may encounter:
Incorrect Endpoint URL
Remember to add "?preview=true" to the end of your URL if querying preview data via the API. Your final URL should look like this:
https://storefront.api.nacelle.com/graphql/v1/spaces/your-space-id?preview=true
Missing Preview Token
Preview tokens can be generated visiting the Space Settings page and clicking on the API Details tab. Under the Storefront API section you'll see the Preview Token sub-section, with the option to create a new token.
You'll also need to include "x-nacelle-preview-token" in your header.
Comments
0 comments
Please sign in to leave a comment.