-
Edge bundling (Astro + Netlify adapter)
- Limitation:
astro builddoes not emit the final.netlify/edge-functions-distbundle; only the Netlify build phase produces it. This makes “prebuild +deploy --no-build” unreliable for attaching Edge Functions. - Suggestion: Provide a documented, supported way to generate the edge bundle alongside
astro build(or an explicitnetlify edge:bundle/edge:deploythat attaches prebuilt bundles without a full build).
- Limitation:
-
Deploy CLI outputs (permalink vs deploy URL)
- Limitation:
netlify deploy --jsonconsistently returns the per‑deploy URL (e.g.https://<id>--<site>.netlify.app) but not a stable permalink/primary domain URL. Theurlfield is inconsistent and not documented as canonical. - Suggestion: Always include canonical site/permalink URLs in the JSON result, and document the fields clearly (e.g.
primary_url,alias_url).
- Limitation:
-
Monorepo path resolution
- Limitation: CLI “Resolved config” often anchors to the Git toplevel, which can ignore app‑local
netlify.tomlintentions and make edge attachment brittle. - Suggestions: Honor
NETLIFY_CONFIG/cwd more strongly for determining app root; emit a machine‑readable “resolved app root/publish” in--jsonoutput; add monorepo best‑practices to docs.
- Limitation: CLI “Resolved config” often anchors to the Git toplevel, which can ignore app‑local
-
Attaching edges without a full build
- Limitation: Even when an edge bundle exists, there is no documented way to “attach” it during
deploy --no-buildreliably. - Suggestion: Provide a CLI/API to attach an existing
.netlify/edge-functions-distto a deploy (e.g.netlify edge:attach --bundle <dir>), or guarantee that config‑driven deploy registers edges when a valid bundle is present.
- Limitation: Even when an edge bundle exists, there is no documented way to “attach” it during
-
Machine‑readable logs
- Limitation: With
--debug, human logs are mixed into--jsonoutput, breaking JSON parsing. - Suggestion: Keep
--jsonoutput clean (all debug to stderr), or add a--json-verbosemode that emits structured diagnostics.
- Limitation: With
Created
October 23, 2025 09:38
-
-
Save schickling/72f93719b32a23572f2b325cc520f370 to your computer and use it in GitHub Desktop.
Netlify + Astro: Limitations and Suggestions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment