Skip to content

Commit

Permalink
GITBOOK-526: feat: add nextjs bundling warning also in the installati…
Browse files Browse the repository at this point in the history
…on tab
  • Loading branch information
yum0e authored and gitbook-bot committed Sep 6, 2023
1 parent 5c3e8ac commit cd5f1c7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build-with-sismo-connect/getting-started-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,21 @@ export async function POST(req: Request) {
}

```

{% hint style="success" %}
If you are using Nextjs, you will need to add this config in the `next.config.js` file to be able to verify the proof. You can find more information [here](https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages).

```javascript
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@sismo-core/sismo-connect-server"],
},
}

module.exports = nextConfig
```
{% endhint %}
{% endtab %}
{% endtabs %}

0 comments on commit cd5f1c7

Please sign in to comment.