Specify environment on build.

main
Joshua Potter 2024-01-10 12:24:52 -07:00
parent e409828011
commit 869cbe0f56
2 changed files with 6 additions and 3 deletions

View File

@ -21,8 +21,11 @@
}
});
</script>
{% if jekyll.environment == "production" %}
<!-- Plausible Analytics -->
<script defer data-domain="jrpotter.com" src="https://analytics.jrpotter.com/js/script.js"></script>
<script defer data-domain="jrpotter.com" src="https://analytics.jrpotter.com/js/script.js">
</script>
{% endif %}
<!-- Use Jekyll SEO plugin -->
{% seo %}
</head>

View File

@ -32,7 +32,7 @@
buildInputs = [ gems gems.wrappedRuby ];
src = ./.;
version = "0.1.0";
installPhase = "jekyll b -d $out";
installPhase = "JEKYLL_ENV=production jekyll b -d $out";
};
default = self.packages.${system}.app;