Skip to content

Commit

Permalink
Merge branch 'main' of github.com:trezy/next-safe into main
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed May 21, 2021
2 parents 1a61f97 + c7543c7 commit 9d1dd13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ yarn add next-safe
`next-safe` exports a single function that generates all of your headers. In your `next.config.js` file, you can pass these directly into the `headers` key for any route you want to set the headers on.

```js
const nextSafe = require('next-safe')
const nextSafe = require('next-safe').default

const isDev = process.env.NODE_ENV === 'production'
const isDev = process.env.NODE_ENV !== 'production'

module.exports = {
async headers () {
Expand Down

0 comments on commit 9d1dd13

Please sign in to comment.