-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
feat: document new CLI flag #11019
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
||
<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. |
There was a problem hiding this comment.
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:
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.
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