@korey I set an absolute URL but still get no hits to the API when doing SSR. Works on the client though.
Here’s the url to the symbol: https://builder.io/content/bb318e2eb7b34ec2876744c1137afe1a
Also you preview it the SSR version here: https://hs.mersenne.now.sh/test-ismail and the client side version here: https://hs.mersenne.now.sh/b/test-ismail
Code I’m running now is:
async function main() {
await fetch('https://hs-git-product-api-endpoint.mersenne.now.sh/api/product-widget?sku=LEATHER_PURSE-BLACK_LANDSCAPE')
.then(res => res.json())
.then(data => {
console.log(data);
// set the data on the state object so you can access it from your components
state.product = data;
});
}
export default main();