fix: skip husky in production image
Validate and deploy staging / validate (push) Successful in 24s
Validate and deploy production / validate (push) Successful in 26s
Validate and deploy staging / deploy (push) Successful in 1m16s
Validate and deploy production / deploy (push) Successful in 34s

This commit is contained in:
jb
2026-08-01 21:47:15 -04:00
parent dd84dff055
commit bc40a737a8
3 changed files with 14 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
const omitted = new Set(
String(process.env.npm_config_omit ?? '')
.split(',')
.map((value) => value.trim())
.filter(Boolean),
);
if (!omitted.has('dev') && process.env.NODE_ENV !== 'production') {
const { default: husky } = await import('husky');
husky();
}