Skip to content

Commit 7b7771a

Browse files
committed
fix: make husky prepare script fail-safe for production deployment
- Add || true to husky prepare script to prevent deployment failures - Ensures npm ci works in production environments where husky is not available
1 parent b118d8c commit 7b7771a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test:all": "npm run test:coverage && npm run test:e2e",
2323
"purge-css": "node scripts/purge-css.js",
2424
"optimize-css": "npm run purge-css && npm run format",
25-
"prepare": "husky",
25+
"prepare": "husky || true",
2626
"check": "npm run code-quality && npm run test",
2727
"check:fix": "npm run code-quality:fix && npm run test",
2828
"env:check": "node -e \"console.log('🔍 Environment Status:'); console.log('📊 Public variables:', Object.keys(process.env).filter(k => k.startsWith('NEXT_PUBLIC_')).length); console.log('🔐 Server variables:', Object.keys(process.env).filter(k => !k.startsWith('NEXT_PUBLIC_')).length); console.log('✅ Environment check completed')\"",

0 commit comments

Comments
 (0)