docs: fix code block titles (#5733)

* docs: fix code block titles

* remove console

* fix build error
This commit is contained in:
Shahed Nasser
2023-11-27 16:08:10 +00:00
committed by GitHub
parent de8f748674
commit 547b16ead5
110 changed files with 483 additions and 456 deletions
@@ -172,7 +172,7 @@ To enable the Product Module, first, make sure to set the following environment
Then, enable the `productModule` feature flag in `store.config.json`:
```json title=store.config.json
```json title="store.config.json"
{
"features": {
// other features...
@@ -198,7 +198,7 @@ The Next.js Starter Storefront by default is compatible with MeiliSearch.
To enable or disable the search engine, change the value of the feature in `store.config.json`:
```json title=store.config.json
```json title="store.config.json"
{
"features": {
"search": false
@@ -269,7 +269,7 @@ Where `<YOUR_APP_ID>` and `<YOUR_SEARCH_API_KEY>` are the Algolia App ID and Alg
Next, change the content of `src/lib/search-client.ts` to the following:
```ts title=src/lib/search-client.ts
```ts title="src/lib/search-client.ts"
import algoliasearch from "algoliasearch/lite"
const appId = process.env.NEXT_PUBLIC_SEARCH_APP_ID || ""