Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

fix(#29): update nextjs documentation #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions storefronts/next.js-commerce.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ See the live demo: [https://spree.vercel.store/](https://spree.vercel.store/)
git clone https://github.com/vercel/commerce.git
```

2. Copy the `framework/spree/env.template` file to `.env.local` in the main directory:
2. Copy the `packages/spree/env.template` file to `site/.env.local` in the main directory:

```text
cp framework/spree/.env.template .env.local
cp packages/spree/.env.template site/.env.local
```

3. Adjust the `NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK` and `NEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINK` environment variables inside `.env.local`:
* They rely on [taxonomies'](https://dev-docs.spreecommerce.org/internals/products#taxons-and-taxonomies) `permalink` values set in Spree.
* Go to the Spree admin panel and create `Categories` and `Brands` taxonomies if they don't exist. Copy their permalinks into `.env.local` in NextJS Commerce.
4. Finally, run `npm install` and `npm run dev`.
4. Finally, run `yarn install` and `yarn run dev`.