Mounted hook to check for ineditor proxy?

Hey team,

Do you have any suggestions how I would be able to check whether a site is being loaded in the editor?

I have a dev branch hosted on netlify which I do not want to be viewable unless it’s being used in the editor, so want to be able to detect if that is true or not to automatically redirect to another page or url.

Since it’sa static host I can’t run any nodejs code, it has to be inside a Vue hook somehow…

Hello Adam,

you can check using the JS client if the page is being visualized in the editor:
https://www.storyblok.com/docs/Guides/storyblok-latest-js#storyblokisineditor-and-pingeditor

This client is being used as a module in other clients like the NuxtJS client: https://github.com/storyblok/storyblok-nuxt#usage