chec / commercejs-nextjs-demo-store

Commerce demo store built for the Jamstack. Built with Commerce.js, Next.js, and can be one-click deployed to Netlify. Includes product catalog, customer login, categories, variants, cart, checkout, payments (Stripe) order confirmation, and printable receipts.
https://commercejs-demo-store.netlify.app/
BSD 3-Clause "New" or "Revised" License
1.07k stars 206 forks source link

Fix bug where customer login token was not available due to Next static optimisation #154

Closed robbieaverill closed 3 years ago

robbieaverill commented 3 years ago

Fixes https://github.com/chec/commercejs-nextjs-demo-store/issues/153 and fixes #156

I'm going to use the deploy preview to test this as I can't work out how to test it locally (see https://github.com/vercel/next.js/discussions/19496)