Skip to content

jekyll.environment not set to production on deployed site #1497

@niebles

Description

@niebles

Describe the bug
jekyll.environment set to development instead of production after deployment on GitHub Pages

To Reproduce

  1. Create a new page with the following code
---
layout: default
title: test
permalink: /test
---
<h2>Environment: {{ jekyll.environment }}</h2>

  1. deploy site on GitHub pages
  2. navigate to page

Expected behavior
Page should print Environment: production

Screenshots
Screenshot

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions