Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio authored Dec 19, 2024
1 parent 7718f8d commit c180e35
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,22 @@ When packaging your application using Webpack make sure that `edge-js` is specif

### Next.js

`next.config.mjs`
`next.config.js`
```js
experimental: {
serverComponentsExternalPackages: ['edge-js'],
},
const nextConfig = {
serverExternalPackages: ['edge-js'],
}

module.exports = nextConfig
```

`next.config.ts`
```typescript
const nextConfig: NextConfig = {
serverExternalPackages: ['edge-js'],
};

export default nextConfig;
```

## Additional languages support
Expand Down

0 comments on commit c180e35

Please sign in to comment.