Skip to content

Commit

Permalink
Added vercel skep protection plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Dec 9, 2024
1 parent 7041b18 commit a2e52e8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.6.3",
"vite-plugin-vercel-skew-protection": "^1.0.1",
"zudoku": "^0.18.3"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import vercelSkewProtection from "vite-plugin-vercel-skew-protection";

export default {
plugins: [
process.env.VERCEL_SKEW_PROTECTION_ENABLED === "1" &&
vercelSkewProtection(),
].filter(Boolean),
};

0 comments on commit a2e52e8

Please sign in to comment.