I've been trying for the past hour to build my jekyll site locally with JEKYLL_ENV=production with no success. I've tried the following methods which I got from this.
set JEKYLL_ENV=production | jekyll build
- run one command at a time
a.
set JEKYLL_ENV=production
b.jekyll build
- edit
_config.yml
and add a lineenvironment: production
- Manually add a new
JEKYLL_ENV
environment variable with valueproduction
on my Windows 11
What am I missing? Any suggestions on how I can troubleshoot?
My new site is based off the Chirpy theme, created using the Chirpy Starter
I also noticed that my deployed site is also in development mode. I'm using the GitHub Actions automatically generated by Azure Static Web Apps using this tutorial. This is even when I added the line environment: production
to _config.yml
Thanks in advance!