New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to Disable Prismic Toolbar and Preview #34
Comments
Hi @jeffhunt00 This will be fixed with the |
V1 is out :) |
Sorry to reopen this but how does one disable the toolbar? I have |
How's going now? What's the solution here? |
Hi @zjhiphop, if you want to disable Prismic Toolbar and Preview provided by this module you should be able to do so by specifying |
In Nuxt 3, using You can do the following in
|
I don't really need to use the Preview feature on the small 1-page I'm building. I also really don't care to use Prismic's Toolbar feature for in-site editing.
It would be great to be able to fully disable these features, such that the associated javascript is not included/downloaded when visitors hit the page. If I hit my page in private browser tab (ie: not signed into Prismic), it seems to download quite a bit of JS that is not required to simply display my content, including jQuery 2.1.1.
I've tried disabling preview in nuxt.config.js, but it doesn't seem to have any effect:
modules: [
['prismic-nuxt', {
endpoint: 'https://XXX.cdn.prismic.io/api/v2',
preview: false,
components: false,
deferLoad: true,
linkResolver: function(doc, ctx) {
return '/'
}
}]
]
The text was updated successfully, but these errors were encountered: