feat(nextjs): Add request data to all edge-capable functionalities#9636
feat(nextjs): Add request data to all edge-capable functionalities#9636
Conversation
size-limit report 📦
|
…t-request-data-in-edge
|
@AbhiPrasad it seems like we can't use the TS built-in |
|
Is this specifically for Vercel? Just wondering how this would play nicely with other platforms such as Netlify. |
@whitep4nth3r This will currently pretty much only apply to the Next.js SDK but for all hosting platforms. We just named the |
Actually no we didn't because vercel edge has async local storage support, while this is not part of the wintercg spec. So something like cloudflare would not work with the vercel-edge sdk. I think core is our wintercg compatible sdk, |
Right. I keep forgetting this. Sorry! |
This PR adds
RequestDatacapabilities to the Vercel Edge SDK. We do not include the capabilities by default until the next major because suddenly including it may leak PII.