i have 2 branches on my git repo, master and development, i want to set different contentful space when building from development branch, i have the following settings in my netlify.toml
[context.development]
command = "rm -rf .cache/ && gatsby build"
CONTENTFUL_SPACE_ID="<ID>"
CONTENTFUL_ACCESS_TOKEN="<TOKEN>"
The build log says
Found netlify.toml. Overriding site configuration
10:04:11 AM: Starting build script
but still it doesn't work, it still takes environment variables set on the netlify deployment section where i set different space_id and access_token for production build.
Comments
Post a Comment