-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
needs triageIssue needs to be triagedIssue needs to be triaged
Description
Astro Info
Astro v6.0.0-beta.9
Vite v7.3.1
Node v24.13.0
System Linux (x64)
Package Manager npm
Output server
Adapter @astrojs/cloudflare (v13.0.0-beta.5)
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
- Astro v6-beta project
- ...with the Cloudflare adapter
- ...with
"compatibility_flags": ["nodejs_compat"]inwrangler.jsonc - ...with any middleware (even a minimal
return next())
...leads to SSR pages showing as [object Object] in the browser in preview mode and in deployment to CF only (dev mode is unaffected.)
Steps to reproduce
- Clone the repro repository.
- Install dependencies with
pnpm install. - Test the application:
pnpm run preview.
What's the expected result?
The application should display the word "Astro", as per the minimal template.
Actual behaviour
The page displays [object Object].
Link to Minimal Reproducible Example
https://github.com/n3dst4/astro-cloudflare-middleware-repro
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs triageIssue needs to be triagedIssue needs to be triaged