# Running Custom Javascript SSR doesn't seem to work

**URL:** <https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81>\
**Category:** Technical Questions\
**Tags:** custom-code\
**Created:** [May 11, 2020, 12:21pm UTC](https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81 "2020-05-11T12:21:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ismailp](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@ismailp](https://forum.builder.io/u/ismailp)\
**Post date:** [May 11, 2020, 7:32pm UTC](https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81/6 "2020-05-11T19:32:15Z")

</div>

@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](https://builder.io/content/bb318e2eb7b34ec2876744c1137afe1a)

Also you preview it the SSR version here: [https://hs.mersenne.now.sh/test-ismail](https://hs.mersenne.now.sh/test-ismail) and the client side version here: [https://hs.mersenne.now.sh/b/test-ismail](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();
```

---

_[View the full topic](https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81)._
