Skip to content

Astro dev intermittently crashes when astro:actions is used in a server island #18132

Description

@TorbjornHoltmon

Astro Info

Astro                    v7.3.4
Node                     v24.19.0
System                   macOS (arm64)
Package Manager          pnpm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When using astro:actions inside a server island with @astrojs/cloudflare, the Astro dev server eventually starts returning 500 errors.

Even though the patch in the repro prevents the issue, we do not know if the fix has any negative consequences. We are not that familiar with the astro and vite architecture.

Credit goes to my colleague @rognstadragnar for reproducing this issue.

What's the expected result?

The server island should continue rendering successfully regardless of how many times the page is requested.

Link to Minimal Reproducible Example

https://github.com/TorbjornHoltmon/astro-actions-server-islands-repro

Participation

  • I am willing to submit a pull request for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage: unable to reproduceTriage bot attempted reproduction but could not reproduce

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions