> For the complete documentation index, see [llms.txt](https://docs.proxyman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.proxyman.com/debug-devices/nextjs-fetch.md).

# NextJS (fetch)

how to capture HTTPS Request Response from NextJS with Server Side Rendering (fetch)

## 1. Problem

* Proxyman can't capture any traffic from the \`use server\` from NextJS
* It's because the \`fetch\` from NextJS doesn't respect the System HTTP Proxy. Therefore, no traffic goes through the Proxyman app.

## 2. Solution

1. Start the Pre-configure Terminal on Tools -> Setup -> Automatic Setup -> Click on "Open New Terminal"
2. New Terminal is opened -> Start your NextJS server on this Terminal. For example: \`npm run dev\`
3. Use `no-cache` on `fetch`

```js
export default async function MyPage() {
  const res = await fetch('https://httpbin.org/anything', { cache: 'no-cache' }) // no cache, or no request is sent to Proxyman
  return <div>My Page{res.text()}</div>
}
```

3. Reload your website
4. Done ✅ Your HTTP Traffic is captured by the Proxyman app

<figure><img src="https://1856518738-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlPt_6BePnJ3oK3saP1%2Fuploads%2FBMTMZWMi3m9d8LIzKP9T%2F335782543-6e0c4eeb-435d-4589-b2dd-4087f3827f3a.jpg?alt=media&amp;token=31a477cb-177d-48d8-a379-4402addfdfa1" alt=""><figcaption><p>Capture NextJS fetch on Proxyman</p></figcaption></figure>

## 3. Reference:

* <https://github.com/ProxymanApp/Proxyman/issues/2038>
