diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9d940bec..6d3d3c82c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: with: access_token: ${{ github.token }} - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set node version uses: actions/setup-node@v3 with: diff --git a/README.md b/README.md index c8f3da272..5816f61e6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ A Next.js 13 and App Router-ready ecommerce template featuring: Vercel will only be actively maintaining a Shopify version [as outlined in our vision and strategy for Next.js Commerce](https://github.com/vercel/commerce/pull/966). -Vercel is more than happy to partner and work with any commerce provider to help them get a similar template up and running and listed below. Alternative providers should be able to fork this repository and swap out the `lib/shopify` file with their own implementation while leaving the rest of the template mostly unchanged. +Vercel is happy to partner and work with any commerce provider to help them get a similar template up and running and listed below. Alternative providers should be able to fork this repository and swap out the `lib/shopify` file with their own implementation while leaving the rest of the template mostly unchanged. - Shopify (this repository) - [BigCommerce](https://github.com/bigcommerce/nextjs-commerce) ([Demo](https://next-commerce-v2.vercel.app/)) @@ -31,6 +31,10 @@ Vercel is more than happy to partner and work with any commerce provider to help - [Saleor](https://github.com/saleor/nextjs-commerce) ([Demo](https://saleor-commerce.vercel.app/)) - [Shopware](https://github.com/shopwareLabs/vercel-commerce) ([Demo](https://shopware-vercel-commerce-react.vercel.app/)) - [Swell](https://github.com/swellstores/verswell-commerce) ([Demo](https://verswell-commerce.vercel.app/)) +- [Umbraco](https://github.com/umbraco/Umbraco.VercelCommerce.Demo) ([Demo](https://vercel-commerce-demo.umbraco.com/)) +- [Wix](https://github.com/wix/nextjs-commerce) ([Demo](https://wix-nextjs-commerce.vercel.app/)) + +> Note: Providers, if you are looking to use similar products for your demo, you can [download these assets](https://drive.google.com/file/d/1q_bKerjrwZgHwCw0ovfUMW6He9VtepO_/view?usp=sharing). ## Running locally diff --git a/app/sitemap.ts b/app/sitemap.ts index 46d39669c..fe8ed96ac 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -1,4 +1,5 @@ import { getCollections, getPages, getProducts } from 'lib/shopify'; +import { validateEnvironmentVariables } from 'lib/utils'; import { MetadataRoute } from 'next'; type Route = { @@ -11,6 +12,8 @@ const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL : 'http://localhost:3000'; export default async function sitemap(): Promise { + validateEnvironmentVariables(); + const routesMap = [''].map((route) => ({ url: `${baseUrl}${route}`, lastModified: new Date().toISOString() diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index ca568e77f..8627ca28b 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -16,7 +16,7 @@ export default async function Footer() { return (