From 3d946429f7a1ee3f85664c976cf3b6e73c984a62 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 14 Oct 2024 19:15:18 -0700 Subject: [PATCH] fix: prod check --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index c28b5858..36f9d97b 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -75,7 +75,7 @@ export default async function (eleventyConfig) { }) eleventyConfig.addShortcode('appVersion', () => appVersion) - eleventyConfig.addShortcode('isProduction', () => process.env.ELEVENTY_PRODUCTION) + eleventyConfig.addShortcode('isProduction', () => process.env.ELEVENTY_PRODUCTION === 'true') // events if (process.env.ELEVENTY_PRODUCTION) eleventyConfig.on('afterBuild', copyErrorPages)