Hi guys, is there a way to limit troubleshoot pop up, or at least to wait more for reloading the page… We are using dynamically generated preview URL and every time it reloads, although the page is valid it appear the troubleshooting popup.
Here is the code that we’re using on preview (I’ve changed a bit to make more readeable).
const url = 'https://staticURL/products/';
const res = await fetch("https://myURL/graphql",{
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body
});
const data = await res.json();
if(data) {
return `${url}${data.permalink}`;
}else{
return "https://preview.builder.codes?model=pdp-story-telling&previewing=true";
}
Thanks in advance!