Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Next.js Commerce

License

NotificationsYou must be signed in to change notification settings

vercel/commerce

Repository files navigation

Deploy with Vercel

Next.js Commerce

A high-performance, server-rendered Next.js App Router ecommerce application.

This template uses React Server Components, Server Actions,Suspense,useOptimistic, and more.

Note: Looking for Next.js Commerce v1? View thecode,demo, andrelease notes.

Providers

Vercel will only be actively maintaining a Shopify versionas outlined in our vision and strategy for Next.js Commerce.

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 thelib/shopify file with their own implementation while leaving the rest of the template mostly unchanged.

Note: Providers, if you are looking to use similar products for your demo, you candownload these assets.

Integrations

Integrations enable upgraded or additional functionality for Next.js Commerce

  • Orama (Demo)

    • Upgrades search to include typeahead with dynamic re-rendering, vector-based similarity search, and JS-based configuration.
    • Search runs entirely in the browser for smaller catalogs or on a CDN for larger.
  • React Bricks (Demo)

    • Edit pages, product details, and footer content visually usingReact Bricks visual headless CMS.

Running locally

You will need to use the environment variablesdefined in.env.example to run Next.js Commerce. It's recommended you useVercel Environment Variables for this, but a.env file is all that is necessary.

Note: You should not commit your.env file or it will expose secrets that will allow others to control your Shopify store.

  1. Install Vercel CLI:npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates.vercel directory):vercel link
  3. Download your environment variables:vercel env pull
pnpm installpnpm dev

Your app should now be running onlocalhost:3000.

Expand if you work at Vercel and want to run locally and / or contribute
  1. Runvc link.
  2. Select theVercel Solutions scope.
  3. Connect to the existingcommerce-shopify project.
  4. Runvc env pull to get environment variables.
  5. Runpnpm dev to ensure everything is working correctly.

Vercel, Next.js Commerce, and Shopify Integration Guide

You can use this comprehensiveintegration guide with step-by-step instructions on how to configure Shopify as a headless CMS using Next.js Commerce as your headless Shopify storefront on Vercel.


[8]ページ先頭

©2009-2025 Movatter.jp