Skip to content

Commit

Permalink
Fixed 404 accessing config variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvautin committed Jun 18, 2024
1 parent c6023ed commit 663c63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const build404 = async () => {
const template404 = compile(fs.readFileSync(template404Path, 'utf-8'));

// Write our 404 html file
const html404 = render(template404, {});
const html404 = render(template404, { config: process.config });
const compiled404Html = render(layout, { body: html404, meta, config: process.config });

// Write our 404 html file
Expand Down

0 comments on commit 663c63e

Please sign in to comment.