Hello there, I’m building an application where some environments variables are required in order for the website to be built.
I’m using the awesome deploy button offered by Netlify where we can use a github repo as a template.
However, people can deploy the website without filling out the inputs.
That’s how my
netlify.toml file looks like:
[template] incoming-hooks = ["Contentful"] [template.environment] CONTENTFUL_SPACE_ID = "" CONTENTFUL_API_TOKEN = "" CONTENTFUL_PREVIEW_TOKEN = "" [build] publish = "public/" command = "npm run build"
It’s a Gatsby application.
My questions are:
- Could I make the generated input fields from the env variables required?
- Could I somehow set a default value for those fields via query string parameters?
Thank you all!