Skip to content

Commit

Permalink
outputPath is not guaranteed to be a string when permalink is set to …
Browse files Browse the repository at this point in the history
…false.

See: 11ty/eleventy#653
  • Loading branch information
Peter committed Feb 6, 2021
1 parent 960a446 commit b7b38b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addTransform(
'eleventy-plugin-helmet',
async (content, outputPath) => {
if (outputPath.endsWith('.html')) {
if (typeof outputPath === 'string' && outputPath.endsWith('.html')) {
const { html } = await pipeline.process(content);
return html;
}
Expand Down

0 comments on commit b7b38b2

Please sign in to comment.