Переменная CONTEXT
в Netlify не должна совпадать с JEKYLL_ENV
в Jekyll. Итак, вы хотите установить JEKYLL_ENV
отдельно, возможно, используя netlify.toml ? Примерно так может работать:
# this will be the default for every branch other than the production branch
[build.environment]
JEKYLL_ENV="development"
# only for production branch, override to production
[context.production.environment]
JEKYLL_ENV="production"