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

feat: document new CLI flag #11019

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: document new CLI flag #11019

wants to merge 1 commit into from

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Feb 21, 2025

Description (required)

It documents a new CLI flag called --allowed-hosts.

I am not very good at this part, I just referenced the Vite documentation.

For Astro version: 5.4.0. See astro PR #13278

Copy link

netlify bot commented Feb 21, 2025

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 52fe8f9
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/67b887a853910d00096410de
😎 Deploy Preview https://deploy-preview-11019--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/reference/cli-reference.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


<p><Since v="5.4.0" /></p>

The hostnames that Astro is allowed to respond to. Refer to the [vite documentation](https://vite.dev/config/server-options.html#server-allowedhosts) for more information.
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we can add a little more information based on your changeset:

Suggested change
The hostnames that Astro is allowed to respond to. Refer to the [vite documentation](https://vite.dev/config/server-options.html#server-allowedhosts) for more information.
Specifies the hostnames that Astro is allowed to respond to in `dev` or `preview` modes. Can be passed a comma-separated list of hostnames to allow or `true` to allow any hostname.
Refer to the [Vite documentation](https://vite.dev/config/server-options.html#server-allowedhosts) for more information.

I also specified with which modes the flag works to prevent confusion if someone try to use this with the build command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants