Installing and Running new Storefront

Hi all

I’m trying to install and run the new Stoefront on my local machine. Unfortunately I’m getting a 401 which I don’t know where it comes from.

I just added all needed API Keys and Secrets into the .env file, build and startup (which all works perfectly fine). But as soon as I open http://localhost:3000 the 401 error is displayed. I saw, that the anonymous token of emporix is successfully generated and the storefront received it. So at least the connection to emporix itself seems to work.

Error seems quite generic and doesn’t seems to help much:

[Error: {“message”:“Unauthorized”,“status”:401,“response”:{“data”:{“error”:“Unauthorized”},“headers”:{“cache-control”:“max-age=0, public, s-maxage=604800”,“connection”:“keep-alive”,“content-length”:“24”,“content-type”:“application/json; charset=utf-8”,“date”:“Fri, 08 Aug 2025 05:57:52 GMT”,“referrer-policy”:“strict-origin-when-cross-origin”,“sb-be-version”:“5.9.7”,“server”:“nginx/1.25.4”,“vary”:“Origin”,“via”:“1.1 6f57fa284b1dcb8bf5f778797a2ba6a8.cloudfront.net (CloudFront)”,“x-amz-cf-id”:“4b6P5ahAa5Jumo1KvOLGTg5HzGEwf41bnH4U5sP1o7ZGqRby80rpuA==”,“x-amz-cf-pop”:“ZRH55-P2”,“x-cache”:“Error from cloudfront”,“x-content-type-options”:“nosniff”,“x-frame-options”:“SAMEORIGIN”,“x-permitted-cross-domain-policies”:“none”,“x-request-id”:“d2e1b889-98a4-4dce-9c06-6d0ef50e3b0b”,“x-runtime”:“0.003862”,“x-xss-protection”:“0”},“status”:401,“statusText”:“Unauthorized”}}] {
digest: ‘3904583099’
}

Does anyone facing a similar issue or maybe have an idea, how to proceed here?

Thanks a lot and best Regards,
Patrick

Hi Patric,

I checked this on my side and got exactly the same output as you did. Once I provided the Storyblok token, the storefront ran perfectly fine.

Please try setting a valid Storyblok token in NEXT_PUBLIC_STORYBLOK_ACCESS_TOKEN — that should resolve the issue.

Regards,
Łukasz

1 Like

Hi Łukasz

Thanks for you quick response.
Seems to work (I’ve used a wrong token for Storyblok :see_no_evil_monkey: ).

Regards,
Patrick