Skip to content

Commit

Permalink
fix code block language (#23070)
Browse files Browse the repository at this point in the history
  • Loading branch information
muescha committed Apr 13, 2020
1 parent 0ede4c8 commit 63b9dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial/e-commerce-with-datocms-and-snipcart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ You'll need to make one change before you try to run the site. The version that

In `gatsby-config.js`, you'll find an array of plugins already installed on your site, including `gatsby-source-datocms`. That section references a variable `process.env.DATO_API_TOKEN`. `process.env` refers to the _environment_ in which you're running your code and `DATO_API_TOKEN` is the name of the particular variable in question.

```jsx:title=gatsby-config.js
```js:title=gatsby-config.js
{
resolve: `gatsby-source-datocms`,
options: { apiToken: process.env.DATO_API_TOKEN },
Expand All @@ -131,7 +131,7 @@ In order to set this variable's value, create a new file in your project's root

Add your DatoCMS API Token environment variable to this file. You can find your API token in Gatsby under Site Settings > Environment variables. Opening the "Edit" menu will allow you to copy the full token. Set that as the value in `.env.development`.

```
```text
DATO_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

Expand Down

0 comments on commit 63b9dd6

Please sign in to comment.