Context not available in astro:actions
#12393
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: actions
Related to Astro actions (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
A am using astro with the cloudflare adapter and
output: 'hybrid'.
I can't access methods from thectx
object without making the dev server crash. I receive the following error message:Same with
ctx.cookies.get
.Here are the console logs of the
ctx
object:What's the expected result?
I would like to access the methods of the
ctx
object to read and write cookies.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zqu2ga?file=src%2Fpages%2Findex.astro,src%2Factions%2Findex.ts&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: