skeleton@1.0.4
·
964 commits
to main
since this release
Patch Changes
-
This is an important fix to a bug with 404 routes and path-based i18n projects where some unknown routes would not properly render a 404. This fixes all new projects, but to fix existing projects, add a
($locale).tsxroute with the following contents: (#1732) by @blittleimport {type LoaderFunctionArgs} from '@remix-run/server-runtime'; export async function loader({params, context}: LoaderFunctionArgs) { const {language, country} = context.storefront.i18n; if ( params.locale && params.locale.toLowerCase() !== `${language}-${country}`.toLowerCase() ) { // If the locale URL param is defined, yet we still are still at the default locale // then the the locale param must be invalid, send to the 404 page throw new Response(null, {status: 404}); } return null; }
-
Add defensive null checks to the default cart implementation in the starter template (#1746) by @blittle
-
🐛 Fix issue where customer login does not persist to checkout (#1719) by @michenly
✨ Add
customerAccountoption tocreateCartHandler. Where a?logged_in=truewill be added to the checkoutUrl for cart query if a customer is logged in. -
Updated dependencies [
faeba9f8,6d585026,fcecfb23,28864d6f,c0ec7714,226cf478,06d9fd91]:- @shopify/cli-hydrogen@7.1.0
- @Shopify/hydrogen@2024.1.2