NextJS (fetch)
how to capture HTTPS Request Response from NextJS with Server Side Rendering (fetch)
Last updated
Was this helpful?
how to capture HTTPS Request Response from NextJS with Server Side Rendering (fetch)
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.
Start the Pre-configure Terminal on Tools -> Setup -> Automatic Setup -> Click on "Open New Terminal"
New Terminal is opened -> Start your NextJS server on this Terminal. For example: `npm run dev`
Use no-cache on fetch
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>
}Reload your website
Done ✅ Your HTTP Traffic is captured by the Proxyman app

Last updated
Was this helpful?
Was this helpful?