ai generated solutions to our ai generated problems

This commit is contained in:
2026-06-15 09:16:39 +01:00
parent e36268b556
commit f6afcf599b
6 changed files with 50 additions and 1249 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ function validateBuiltDist() {
const html = fs.readFileSync(indexPath, 'utf8')
if (/\sintegrity=(["'])sha(?:256|384|512)-[^"']+\1/i.test(html)) {
throw new Error('Frontend build contains integrity attributes that may not match the obfuscated assets')
throw new Error('Frontend build contains unsupported integrity attributes')
}
const assetPaths = [...html.matchAll(/(?:src|href)=(["'])\/(assets\/[^"']+)\1/g)]