fix(ud): Add context wrapping to Cedar Functions#2059
Conversation
✅ Deploy Preview for cedarjs canceled.
|
Greptile SummaryThis PR adds Cedar context wrapping to UD standard functions. The main changes are:
Confidence Score: 4/5The UD standard function context path needs a fix before merging.
packages/vite/src/plugins/vite-plugin-cedar-universal-deploy.ts
|
| Filename | Overview |
|---|---|
| packages/vite/src/plugins/vite-plugin-cedar-universal-deploy.ts | Adds AsyncLocalStorage wrapping to generated UD standard function modules, but the wrapper does not seed the async store with the built request context. |
Reviews (1): Last reviewed commit: "fix(ud): Add context wrapping to Cedar F..." | Re-trigger Greptile
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 2s | View ↗ |
nx run-many -t build |
✅ Succeeded | 4s | View ↗ |
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 1m 53s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 10s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-08 06:52:36 UTC
|
The changes in this PR are now available on npm. Try them out by running Or try it in a new app with |

Add context wrapping to Cedar Functions for UD deploys. Previously only GraphQL got access to Cedar's context. Now also standard Functions (like web hooks) get access to it