Skip to content

Commit

Permalink
docs(readme): remove .default from import
Browse files Browse the repository at this point in the history
The `.default` export doesn't exist after converting the library source to commonjs.

Updates #2
  • Loading branch information
trezy committed May 21, 2021
1 parent 9d1dd13 commit ef1ab28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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').default
const nextSafe = require('next-safe')

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

Expand Down

0 comments on commit ef1ab28

Please sign in to comment.