Describe the bug
jekyll.environment set to development instead of production after deployment on GitHub Pages
To Reproduce
- Create a new page with the following code
---
layout: default
title: test
permalink: /test
---
<h2>Environment: {{ jekyll.environment }}</h2>
- deploy site on GitHub pages
- navigate to page
Expected behavior
Page should print Environment: production
Screenshots

System (please complete the following information):
- OS: macOS
- Browser (and its version) Chrome and Safari
- Jekyll version 4.3.2 (local version)
- Ruby version 3.0.2p107 (local version)