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)