However, it does not append the visible toolbar (div with id prismic-toolbar-v2) to my page and does not add a preview cookie to the local host.
The behavior is the same in Chrome/Safari/Firefox and independent of whether I visit the dev-server, prod server or a static export. I have all ad/tracking blockers turned off or use incognito mode respectively.
I am happy for any suggestions, as this is preventing me from working with previews.
If you're using the the latests versions of Next and the toolbar, along with the proper Preview configuration, you shouldn’t be having any trouble, so it's really weird.
How have you configured the Preview in both your repository and in your project?
He're the docs for how to Handle document previews with Next:
Yes, but as I said it's the same on a dev-server or a local node server in production mode.
However, we also have an issue with previews and static deployment. Now that you are asking, is there a known example of Next static export + Prismic deployment? So far, I only found ones that required running a node server in prod.
Hey @kf1, we do not have an example got a Next.js static export project yet.
Are you still experiencing issues with the Preview?
If you are, I'm thinking it may be that you're just not logged in Prismic when you open your project and therefore you're not able to see the toolbar.
Could this be the case?
Pau
closed , flag & select 'Something Else' to reopen.
11
This issue has been closed due to inactivity. Flag to reopen.
I'm seeing the same issue.
Locally the toolbar appears, but in any live environment it loads, despite showing no errors or warnings, and previews working correctly besides the Toolbar iframe.
Hey @peter.zenger, are you using the latest version of the toolbar script? It should look like this: <script async defer src="https://static.cdn.prismic.io/prismic.js?new=true&repo=your-repository-name"></script>
<PrismicPreview repositoryName={pageProps.prismicRepository}>
Previews work, it just doesn't load the preview iframe on deployed environments, and apps which embed links to these pages load the toolbar in it's own window.
Could you please share your repository and Project source code? I'll troubleshoot the issue for you. You can send these details by private message though.