Skip to content

Netlify Edge Functions route pattern validation error #4376

@jackiewmacharia

Description

@jackiewmacharia

What version of astro are you using?

1.0.6

Are you using an SSR adapter? If so, which one?

Netlify

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

We set up validation for Edge Functions manifest.json recently and came across some build failures from some astro route patterns. This happens if a route pattern is set up at this point: astro/blob/main/packages/integrations/netlify/src/integration-edge-functions.ts. This error is triggered during netlify build.

We currently handle this by serializing it in this way in netlify/build. I have minimal repro code here and fix on my fork branch here ready for a PR if that's okay. Instructions to test the fix available here.

Error screenshot:
ntl build err

Link to Minimal Reproducible Example

https://github.com/jackiewmacharia/astro-cattos

Participation

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

Metadata

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions