Skip to content

Commit 95be9b9

Browse files
authored
feat: skew protection (#3147)
1 parent d24f15e commit 95be9b9

38 files changed

+2003
-10
lines changed

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@
6565
"@netlify/zip-it-and-ship-it": "^14.1.8",
6666
"@opentelemetry/api": "^1.8.0",
6767
"@playwright/test": "^1.43.1",
68+
"@types/adm-zip": "^0.5.7",
6869
"@types/node": "^20.12.7",
6970
"@types/picomatch": "^3.0.0",
7071
"@types/uuid": "^10.0.0",
7172
"@vercel/nft": "^0.30.0",
73+
"adm-zip": "^0.5.16",
7274
"cheerio": "^1.0.0-rc.12",
7375
"clean-package": "^2.2.0",
7476
"esbuild": "^0.25.0",

src/build/plugin-context.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ export class PluginContext {
207207
return join(this.edgeFunctionsDir, EDGE_HANDLER_NAME)
208208
}
209209

210+
/** Absolute path to the skew protection config */
211+
get skewProtectionConfigPath(): string {
212+
return this.resolveFromPackagePath('.netlify/v1/skew-protection.json')
213+
}
214+
210215
constructor(options: NetlifyPluginOptions) {
211216
this.constants = options.constants
212217
this.featureFlags = options.featureFlags

0 commit comments

Comments
 (0)