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

Add Support for setting CLI Flags #42

Open
abegehr opened this issue Jan 30, 2024 · 1 comment
Open

Add Support for setting CLI Flags #42

abegehr opened this issue Jan 30, 2024 · 1 comment

Comments

@abegehr
Copy link

abegehr commented Jan 30, 2024

It would be great to have an option to set cli flags on the astro build command.
Specifically, I'd like to specify the --config flag to deploy a static version of my site.
Reference: https://docs.astro.build/en/reference/cli-reference/

@natemoo-re
Copy link
Member

I like the idea but it might be better solved by an environment variable? That would require an upstream change to astro to support something like ASTRO_CONFIG_PATH as well as --config. That would be more secure than allowing an arbitrary string to be executed (which could potentially allow an attacker to exfiltrate private tokens via PR.)

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

No branches or pull requests

2 participants