fix: remove prod check

This commit is contained in:
Cory Dransfeldt 2024-10-14 19:19:54 -07:00
parent 3d946429f7
commit 49c6a67373
No known key found for this signature in database
3 changed files with 3 additions and 8 deletions

View file

@ -75,7 +75,6 @@ export default async function (eleventyConfig) {
})
eleventyConfig.addShortcode('appVersion', () => appVersion)
eleventyConfig.addShortcode('isProduction', () => process.env.ELEVENTY_PRODUCTION === 'true')
// events
if (process.env.ELEVENTY_PRODUCTION) eleventyConfig.on('afterBuild', copyErrorPages)

View file

@ -117,10 +117,8 @@
<link rel="alternate" href="https://coryd.dev/feeds/album-releases" title="Album releases / {{ globals.site_name }}" type="application/rss+xml">
<link rel="alternate" href="https://coryd.dev/feeds/all" title="All activity / {{ globals.site_name }}" type="application/rss+xml">
<script defer src="/assets/scripts/index.js?v={% appVersion %}"></script>
{%- if isProduction -%}
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{%- endif -%}
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",

View file

@ -1,6 +1,4 @@
<article>
{{ intro }}
{%- if isProduction -%}
{% render "partials/blocks/now-playing.liquid", nowPlaying:nowPlaying %}
{%- endif -%}
{% render "partials/blocks/now-playing.liquid", nowPlaying:nowPlaying %}
</article>