ozzyonfire / shopify-next-app

Shopify app template on Next.js with app directory
https://shopify-next-app-six.vercel.app
MIT License
64 stars 7 forks source link

App bridge v4 - Fix client side redirect #10

Closed ozzyonfire closed 5 months ago

ozzyonfire commented 5 months ago

Before I was redirecting to a different route. But this was impacting the way the layout was rendered...

To reduce complexity, I am now doing the client side redirect in the / route of the app. If the installation or session token checks fail, then we just render a different component to handle the redirect.