Skip to content

Commit

Permalink
Add jsdoc types to docs snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Jul 12, 2021
1 parent f52955e commit 39540d7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/api-reference/next.config.js/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,27 @@ For custom advanced behavior of Next.js, you can create a `next.config.js` in th
Take a look at the following `next.config.js` example:

```js
module.exports = {
/**
* @type {import('next').NextConfig}
*/
const config = {
/* config options here */
}

module.exports = config
```

You can also use a function:

```js
module.exports = (phase, { defaultConfig }) => {
return {
/**
* @type {import('next').NextConfig}
*/
const config = {
/* config options here */
}
return config
}
```

Expand Down

0 comments on commit 39540d7

Please sign in to comment.