website: add netlify cache plugin (#15113)

* website: add cache plugin

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* ok fine

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* absolute path?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix, include npm cache for docusaurus 3.8 and rspack

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-06-18 15:07:15 +02:00
committed by GitHub
parent 092b6f7faf
commit 8eaed2b2f4
4 changed files with 20 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.toml]
indent_size = 2
[*.html]
indent_size = 2

View File

@@ -1,3 +1,11 @@
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["website/.docusaurus", "website/node_modules/.cache"]
[[plugins]]
package = "netlify-plugin-debug-cache"
[[redirects]]
from = "/blog/*"
to = "https://goauthentik.io/blog/:splat"

View File

@@ -50,6 +50,7 @@
"cross-env": "^7.0.3",
"eslint": "^9.29.0",
"fast-glob": "^3.3.3",
"netlify-plugin-cache": "^1.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"prettier-plugin-packagejson": "^2.5.15",
@@ -19236,6 +19237,13 @@
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
"license": "MIT"
},
"node_modules/netlify-plugin-cache": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/netlify-plugin-cache/-/netlify-plugin-cache-1.0.3.tgz",
"integrity": "sha512-CTOwNWrTOP59T6y6unxQNnp1WX702v2R/faR5peSH94ebrYfyY4zT5IsRcIiHKq57jXeyCrhy0GLuTN8ktzuQg==",
"dev": true,
"license": "MIT"
},
"node_modules/nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",

View File

@@ -67,6 +67,7 @@
"cross-env": "^7.0.3",
"eslint": "^9.29.0",
"fast-glob": "^3.3.3",
"netlify-plugin-cache": "^1.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"prettier-plugin-packagejson": "^2.5.15",