This repo tries to use MSW to intercept sub-requests, but it does not work. It tries to do the same as done in https://github.com/rmiller61/hydrogen-oxygen-msw, but using more recent package versions. It was also mentioned in Shopify/hydrogen#1604 (comment) .
Requirements:
- Node.js version 18.0.0 or higher
npm create @shopify/hydrogen@latest
npm run build
npm run dev
Follow step 1 and 2 of https://shopify.dev/docs/custom-storefronts/building-with-the-customer-account-api/hydrogen#step-1-set-up-a-public-domain-for-local-development