Commit graph

2 commits

Author SHA1 Message Date
Damien Simonin Feugas
35f1a3501a
feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
Damien Simonin Feugas
6f43c90b92
feat(edge): adds AsyncLocalStorage support to the edge function sandbox (#41622)
## 📖  Feature

Adds `AsyncLocalStorage` as a global variable to any edge function (middleware, Edge API routes).
Falls back to Node.js' implementation. 

## 🧪 How to test

1. `pnpm build`
2. `pnpm testheadless --testPathPattern async-local`
2022-10-21 12:17:58 +00:00