Skip to content

Conversation

@matthewp
Copy link
Contributor

Changes

Testing

N/A

Docs

N/A

- Make getAllowedDomains() call optional with fallback to empty array
- Update peer dependency to require astro@^5.14.3
- Fixes #14513
@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 8ebccd8

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

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 Oct 10, 2025
try {
request = NodeApp.createRequest(req, {
allowedDomains: app.getAllowedDomains(),
allowedDomains: app.getAllowedDomains?.() ?? [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any restrictions with this being an empty array vs it being completely missing in previous versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option just didn't exist in previous versions, so we'd be passing an empty array that gets ignored. Seems fine?

@matthewp matthewp merged commit 66a26d7 into main Oct 10, 2025
20 checks passed
@matthewp matthewp deleted the get-allowed-domains-fix branch October 10, 2025 13:49
@astrobot-houston astrobot-houston mentioned this pull request Oct 10, 2025
florian-lefebvre added a commit that referenced this pull request Oct 13, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: Matthew Phillips <[email protected]>
Co-authored-by: Houston (Bot) <[email protected]>
Co-authored-by: Bartosz Kapciak <[email protected]>
Co-authored-by: Bartosz Kapciak <[email protected]>
Co-authored-by: Armand Philippot <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Abdelrahman Abdelfattah <[email protected]>
Co-authored-by: Alasdair McLeay <[email protected]>
Fix failing x-forwarded-host tests (#14505)
fix(prefetch): Fix "tap" prefetch strategy when view transitions are enabled (#14235)
fix `security.allowedDomains` version (#14509)
Fix compatibility with older Astro versions in @astrojs/node (#14514)
Fixes #14513
fix heading level in config reference docs (#14517)
fix(deps): update all non-major dependencies (#14522)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: app.getAllowedDomains is not a function on Node adapter

2 participants