morworx.blogg.se

Unable to generate preview
Unable to generate preview








Image 2000×726 82.6 KB Did you configure a route to handle redirection, and, Is this route using the link resolver? Make sure that the Link Resolver in your repo Settings > Previews is set up to redirect to the correct page. I'm landing on the wrong page - I'm landing on the homepage all the time With server-side technologies, like Nuxt.js / Next.js / Gatsby make sure you're getting and passing the req when doing your queries. If you're using Prismic JS in a client-side app then it should work without doing any work as it passes the req automatically to get the right content. If you see the correct info then the problem is in the code. Pass the cookie data as the Prismic-ref field, then run the query again. Take the cookie data and when you run the query for the document in your graphql browser. Test in the Graphql browser:įirst, Download ModHeader or a similar extension for your browser. Open the page, if it works then the problem is in the code. Take the value from this field and add it in there This token should look something like this: https%3A%2F%%2Fpreviews%2FXbr_VhAAACMAEdNJ%3AXbr-nBAAACMAEc-_%3FwebsitePreviewId%3DXanozRIAABXZ-ihY&documentId=XbApbxAAACYAP1DJ Check on the left in the cookies tab for your repo name, you will see a field with the name: io.prismic.preview Can you see the preview cookie in the browser?Ĭlick the preview button which should take you to your website, right-click inspect, go to the application tab. Have you loaded the preview script in your application?Ĭheck in the head of all your pages to make sure the script is present, make sure that the Prismic preview toolbar script is included in your 404 page. This article is designed to help you troubleshoot Prismic Previews.










Unable to generate preview