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

Fix: Astro.site should default to localhost if not provided in config #3552

Merged
merged 4 commits into from
Jun 7, 2022

Conversation

tony-sull
Copy link
Contributor

Closes #3551

Changes

In the Astro global, Astro.site should default to http://localhost:{port} when not provided in the project's config

Testing

Added dev and build tests to verify the default Astro.site value

Docs

Bug fix only, the documented behavior is already that localhost should be the default

@changeset-bot
Copy link

changeset-bot bot commented Jun 7, 2022

🦋 Changeset detected

Latest commit: 4bcb703

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

This PR includes changesets to release 1 package
Name Type
astro Patch

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 Jun 7, 2022
@tony-sull tony-sull marked this pull request as draft June 7, 2022 20:23
@tony-sull tony-sull force-pushed the fix/config-site-default branch from 5a2219a to 4bcb703 Compare June 7, 2022 20:33
@tony-sull tony-sull marked this pull request as ready for review June 7, 2022 20:59
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

LGTM!

@tony-sull tony-sull merged commit 3eb96a7 into main Jun 7, 2022
@tony-sull tony-sull deleted the fix/config-site-default branch June 7, 2022 21:20
@github-actions github-actions bot mentioned this pull request Jun 7, 2022
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
…withastro#3552)

* Astro.site should be defaulted to localhost

* test: verify Astro.site default value

* chore: add changeset

* test: matching a URL regex to ignore specific port numbers
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.

🐛 BUG: Astro.site defaults to https://astro.build when not provided in the Astro config
2 participants