iFixit / react-commerce

A work in progress prototype for iFixit e-commerce functionalities.
https://react-commerce.vercel.app
2 stars 0 forks source link

Refactor product redirect #2200

Closed dhmacs closed 8 months ago

dhmacs commented 8 months ago

This PR contains a minor refactor of the product redirect logic and adds product fetching to the app router page.

QA

Redirects should be followed (both from Shopify or iFixit), unless the given handle corresponds to an enabled product that exists.

For example, /products/ipad-air-4-battery should redirect to /products/ipad-air-4-5-battery.

vercel[bot] commented 8 months ago

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

Name Status Preview Comments Updated (UTC)
react-commerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 4:21pm
react-commerce-prod ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 4:21pm
ghost commented 8 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/iFixit/react-commerce/2200/6ad68ad4/6fc1a94791c9d48d666f0444b271b5aa3504a77b.svg)](https://app.codesee.io/r/reviews?pr=2200&src=https%3A%2F%2Fgithub.com%2FiFixit%2Freact-commerce) #### Legend CodeSee Map legend
github-actions[bot] commented 8 months ago

📦 Next.js Bundle Analysis for @ifixit/commerce-frontend

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

deltuh-vee commented 8 months ago

QA 🎬 Redirects are followed unless the given handle corresponds to an enabled product that exists.