I have a nextjs project repo id jenzabar-next. I have set up preview mode in an identical way to my other prismic projects which work. Yet window.prismic.Toolbar is undefined in jenzabar-next. The preview does work when clicking the eye icon but the toolbar is not available.
using packages "@prismicio/client": "^5.1.0" in dependencies and "prismic-cli": "^3.8.13" in devDependencies
I initially thought it was this issue but I think it is something else
I copied the prismic script exactly from the preview settings page
<script async defer src="https://static.cdn.prismic.io/prismic.js?new=true&repo=jenzabar-next"></script>