Skip to content

[pull] main from withastro:main#586

Merged
pull[bot] merged 5 commits into
code:mainfrom
withastro:main
Jun 10, 2026
Merged

[pull] main from withastro:main#586
pull[bot] merged 5 commits into
code:mainfrom
withastro:main

Conversation

@pull

@pull pull Bot commented Jun 10, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

fkatsuhiro and others added 5 commits June 10, 2026 12:08
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
…tics (#17018)

* fix(netlify): match canonical remotePatterns semantics in image CDN regex

The generated regexes for Netlify Image CDN's remote_images config were
broader than Astro's canonical matchHostname/matchPathname helpers:

- *.host patterns used '?' (optional subdomain), allowing the apex host.
  Changed to required group so exactly one subdomain is required.
- **.host patterns used '*' (zero or more), allowing the apex host.
  Changed to '+' so at least one subdomain is required.
- Pathname regexes lacked an end anchor, so .test() could match a URL
  prefix (e.g. /ok/a inside /ok/a/b.jpg). Added '$' anchor.
- The /** and /* branches were not mutually exclusive (if/if instead of
  if/else if), causing /** to emit a redundant second group.

* chore: add changeset
@pull pull Bot locked and limited conversation to collaborators Jun 10, 2026
@pull pull Bot added the ⤵️ pull label Jun 10, 2026
@pull pull Bot merged commit 0408628 into code:main Jun 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants