Skip to content

Commit

Permalink
GITBOOK-525: feat: add warning about next server component bundling t…
Browse files Browse the repository at this point in the history
…hat disallow proof verification
  • Loading branch information
yum0e authored and gitbook-bot committed Sep 6, 2023
1 parent 9650bbb commit 5c3e8ac
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build-with-sismo-connect/technical-documentation/auths.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,21 @@ async function verifyResponse(sismoConnectResponse: SismoConnectResponse) {
```
{% endcode %}

{% 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 %}

#### Multiple AuthRequests - code example

{% code overflow="wrap" %}
Expand Down
15 changes: 15 additions & 0 deletions build-with-sismo-connect/technical-documentation/claims.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,21 @@ async function verifyResponse(sismoConnectResponse: SismoConnectResponse) {
```
{% endcode %}

{% 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 %}

**Multiple ClaimRequests - code example**

{% code overflow="wrap" %}
Expand Down
15 changes: 15 additions & 0 deletions build-with-sismo-connect/technical-documentation/signature.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,21 @@ async function verifyResponse(sismoConnectResponse: SismoConnectResponse) {
}
```
{% endcode %}

{% 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 %}

{% tab title="Onchain verification - Solidity" %}
Expand Down

0 comments on commit 5c3e8ac

Please sign in to comment.