Skip to content

Add edgeFunctions to Netlify adapter devFeatures to allow disabling edge function emulation#17245

Open
astrobot-houston wants to merge 1 commit into
mainfrom
triagebot/fix-17244
Open

Add edgeFunctions to Netlify adapter devFeatures to allow disabling edge function emulation#17245
astrobot-houston wants to merge 1 commit into
mainfrom
triagebot/fix-17244

Conversation

@astrobot-houston

Copy link
Copy Markdown
Contributor

Changes

  • Adds edgeFunctions to the devFeatures adapter option so users can disable Netlify Edge Function emulation during astro dev. Some npm packages (e.g. node-html-parser) access the filesystem at initialization and fail inside the Deno sandbox with "Reading or writing files with Edge Functions is not supported yet." Setting devFeatures: { edgeFunctions: false } works around this — edge functions still work in production and via netlify dev.
  • The new option defaults to true to preserve existing behavior.

Closes #17244

Testing

  • No new tests added. The fix is a config passthrough to @netlify/vite-plugin's existing edgeFunctions.enabled option; existing integration tests already cover edge function emulation when enabled. Fix was verified against the reporter's reproduction repo.

Docs

  • No docs update needed; the new option is documented in the JSDoc on NetlifyIntegrationConfig and in the changeset.
@astrobot-houston astrobot-houston added the fix verified Reporter confirmed the triage bot fix works label Jun 30, 2026
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 16c0dfe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@astrojs/netlify Patch
@test/netlify-session Patch
@test/netlify-hosted-astro-project Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: integration Related to any renderer integration (scope) label Jun 30, 2026
@paulrudy

Copy link
Copy Markdown
Contributor

I wonder if there might be an alternative fix to #17244, other than the suggested one, which apparently disables edge functions altogether in astro dev.

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

Labels

fix verified Reporter confirmed the triage bot fix works pkg: integration Related to any renderer integration (scope)

2 participants