storyblok / custom-app-examples

https://custom-app-examples.vercel.app
5 stars 1 forks source link

fix: upgrade version to manage authentication in US #6

Closed johannes-lindgren closed 1 year ago

johannes-lindgren commented 1 year ago

Issue: EXT-1541

What

Upgrading the Nextjs starter to be compatible with US spaces:

  1. Upgrading the version of @storyblok/app-extension-auth
  2. Using storyblok-js-client to fetch data, because it has an option to provide the region.
  3. Increased type safety by validating responses.

How to test

Try this app on a EU space and a US space:

Install with

https://app.storyblok.com/#!/install/storyblok-gmbh@app-extension-nextjs-starter

Open the Vercel preview deployment for this PR by appending ?dev=1 to the URL.

You should see something like

image
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-extension-nextjs-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 1:16pm
eunjae-lee commented 1 year ago

Not sure if this PR is ready for review (because it says it's a draft PR). Ping me when you think it's ready (and also when it passes the CI)