By: Michael Lynch <git@mtlynch.io>
Resolve owner status in middleware so newPageData can't fail newPageData previously did a fallible currentUser DB read to compute IsOwner, forcing every page handler to add identical error-handling boilerplate. Move that lookup into a resolveOwner middleware that stashes owner status in the request context (mirroring the cspNonce pattern), so newPageData returns a plain pageData again. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Time to Start | Worker time | Duration | Time to finish | |
| Config | 1s | 10s | 10s | 12s |
| Eval | 10s | 2m24s | 2m24s | 2m35s |
| Build | 30s | 9m45s | 2m23s | 2m54s |
| Test | - | - | - | - |
| Deploy | - | - | - | - |
| Suite | 1s | 12m20s | 2m52s | 2m54s |