NextJS (fetch)
how to capture HTTPS Request Response from NextJS with Server Side Rendering (fetch)
1. Problem
2. Solution
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. Reference:
Last updated