Next.js Commerce

- 1.Clone the git repository:git clone https://github.com/vercel/commerce.git
- 2.Copy the
packages/spree/env.template
file tosite/.env.local
in the main directory:cp packages/spree/.env.template site/.env.local - 3.Adjust the
NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK
andNEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINK
environment variables inside.env.local
:- Go to the Spree admin panel and create
Categories
andBrands
taxonomies if they don't exist. Copy their permalinks into.env.local
in NextJS Commerce.
- 4.Finally, run
yarn install
andyarn run dev
.
Last modified 10mo ago