Skip to content

Commit

Permalink
chore: fix header generation and production build crashes (#5100)
Browse files Browse the repository at this point in the history
* chore: use direct path to assetgraph-builder > buildProduction in nps

* chore: switch NODE_VERSION to 20

* chore: remove scripts/netlify-headers.js

* chore: remove scripts/netlify-headers.js

* git checkout master -- netlify.toml
  • Loading branch information
JoshuaKGoldberg authored Feb 27, 2024
1 parent 7f6f040 commit 51502ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 128 deletions.
4 changes: 2 additions & 2 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module.exports = {
docs: {
default: {
script:
'nps docs.clean && nps docs.api && eleventy && nps docs.linkcheck && node scripts/netlify-headers.js docs/_site >> docs/_site/_headers',
'nps docs.clean && nps docs.api && eleventy && nps docs.linkcheck',
description: 'Build documentation'
},
production: {
Expand All @@ -277,7 +277,7 @@ module.exports = {
},
postbuild: {
script:
'buildProduction docs/_site/index.html --outroot docs/_dist --canonicalroot https://mochajs.org/ --optimizeimages --svgo --inlinehtmlimage 9400 --inlinehtmlscript 0 --asyncscripts && cp docs/_headers docs/_dist/_headers && node scripts/netlify-headers.js docs/_dist >> docs/_dist/_headers',
'node node_modules/assetgraph-builder/bin/buildProduction docs/_site/index.html --outroot docs/_dist --canonicalroot https://mochajs.org/ --optimizeimages --svgo --inlinehtmlimage 9400 --inlinehtmlscript 0 --asyncscripts && cp docs/_headers docs/_dist/_headers',
description: 'Post-process docs after build',
hiddenFromHelp: true
},
Expand Down
126 changes: 0 additions & 126 deletions scripts/netlify-headers.js

This file was deleted.

0 comments on commit 51502ab

Please sign in to comment.