Skip to content
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

storyblok-v2-latest.js loaded even when not in edit mode #885

Open
mediabeastnz opened this issue Jul 26, 2024 · 1 comment
Open

storyblok-v2-latest.js loaded even when not in edit mode #885

mediabeastnz opened this issue Jul 26, 2024 · 1 comment
Assignees

Comments

@mediabeastnz
Copy link

storyblok.com

storyblok-v2-latest.js loaded even when not in edit mode which is a decent sized file that would increase performance if removed when not needed.


Expected Behavior

This script should only be loaded/injected into dom if the site is either in dev mode or edit mode. Not when the site is built or being served in production.

Current Behavior

https://app.storyblok.com/f/storyblok-v2-latest.js loads on all requests and environments.

Steps to Reproduce

This is my current astro configuration. No live preview but am using the Visual editor in storyblok.

...
output: "server",
storyblok({
    livePreview: false,
    apiOptions: {
        region: "ap",
        cache: {
            clear: "manual", // using flush to clear
        },
    },
    bridge: {
        resolveLinks: "url",
    },
})
@schabibi1 schabibi1 self-assigned this Sep 3, 2024
@J05HI
Copy link

J05HI commented Sep 11, 2024

You have to set the bridge to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants