Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: better warning #12642

Merged
merged 2 commits into from
Dec 5, 2024
Merged

chore: better warning #12642

merged 2 commits into from
Dec 5, 2024

Conversation

ematipico
Copy link
Member

Changes

This PR adds the routePattern to the warning about Astro.request.headers being used in pre-rendered pages.

This should give us better information when debugging the annoying warning :)

Testing

CI should pass

Docs

N/A

Copy link

changeset-bot bot commented Dec 5, 2024

🦋 Changeset detected

Latest commit: 29cc5c4

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: astro Related to the core `astro` package (scope) label Dec 5, 2024
Copy link

codspeed-hq bot commented Dec 5, 2024

CodSpeed Performance Report

Merging #12642 will not alter performance

Comparing chore/better-warning (29cc5c4) with main (22e405a)

Summary

✅ 6 untouched benchmarks

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

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

Love this!

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Just happened to see this, and server-rendered has a hyphen so I threw one in there and will give you an approval from docs, fwiw!

(Very clear and descriptive changeset message! I'm always so proud of everyone that we take the time to write something helpful there.)

packages/astro/src/core/request.ts Outdated Show resolved Hide resolved
Co-authored-by: Sarah Rainsberger <[email protected]>
@ematipico ematipico merged commit ff18b9c into main Dec 5, 2024
16 checks passed
@ematipico ematipico deleted the chore/better-warning branch December 5, 2024 12:25
@astrobot-houston astrobot-houston mentioned this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants