Skip to content

Commit 87adba0

Browse files
authored
Use 404 plugin (#3882)
1 parent 8f3410b commit 87adba0

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

netlify.toml

+18-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[plugins.inputs]
88
# If it should show more verbose logs (optional, default = true)
9-
debug = true
9+
debug = false
1010

1111
[[plugins]]
1212
# https://github.com/philhawksworth/netlify-plugin-minify-html#readme
@@ -47,4 +47,20 @@
4747
providers = [
4848
"google",
4949
"yandex"
50-
]
50+
]
51+
52+
[[plugins]]
53+
# https://github.com/eggnstone/netlify-plugin-no-more-404/blob/master/manifest.yaml
54+
package = "@eggnstone/netlify-plugin-no-more-404"
55+
56+
# all inputs are optional, we just show you the defaults below
57+
[plugins.inputs]
58+
59+
# either "warn" or "error"
60+
failBuildOnError = true
61+
62+
# change this key to a new one any time you need to restart from scratch
63+
cacheKey = "Jan202025"
64+
65+
# (for development) turn true for extra diagnostic logging
66+
debug = true

package-lock.json

+34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"homepage": "https://github.com/google/docsy-example#readme",
1919
"devDependencies": {
20+
"@eggnstone/netlify-plugin-no-more-404": "^1.5.0",
2021
"autoprefixer": "^10.4.13",
2122
"postcss": "^8.4.31",
2223
"postcss-cli": "^9.1.0",

0 commit comments

Comments
 (0)