From 63087599bfa674c241426aa9fee8707d477bfb0e Mon Sep 17 00:00:00 2001 From: MarkvanMents Date: Tue, 7 Jul 2026 18:29:42 +0200 Subject: [PATCH] FIx production build issue Cannot read browserslist-stats.json https://discourse.gohugo.io/t/security-error-with-the-new-0-161-0-security-for-postcss/57186 --- config/production/hugo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/production/hugo.toml b/config/production/hugo.toml index 1193ff913a5..e001ceb4fd3 100644 --- a/config/production/hugo.toml +++ b/config/production/hugo.toml @@ -19,3 +19,11 @@ title = "Mendix Documentation" mediaType = "application/json" # file output type notAlternative = true # excludes from looping over .AlternativeOutputFormats page variable +# Hugo 0.161.0 Introduces an error from browserslist-stats.json which is triggered on a production build. +# development build is fine, so probably related to algolia build +# see discussion here: https://discourse.gohugo.io/t/security-error-with-the-new-0-161-0-security-for-postcss/57186 +# Add new "allowread" setting +[security] + [security.node] + [security.node.permissions] + allowRead = ['.', '/**/browserslist-stats.json'] \ No newline at end of file