Skip to content

Commit

Permalink
feat: enable Vercel deployment protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Kwong committed Feb 20, 2025
1 parent b533f72 commit 6a869bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/unlighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- run: npm install -g @unlighthouse/cli puppeteer
- run: npm list -g @unlighthouse/cli
- run: unlighthouse-ci
env:
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
3 changes: 3 additions & 0 deletions unlighthouse.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const config = {
},
},
lighthouseOptions: {
extraHeaders: {
"x-vercel-protection-bypass": process.env.VERCEL_AUTOMATION_BYPASS_SECRET,
},
throttling: {
cpuSlowdownMultiplier: 8.6,
},
Expand Down

0 comments on commit 6a869bf

Please sign in to comment.