File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/build/src/plugins_core/frameworks_api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const OVERRIDE_PROPERTIES = new Set(['redirects!'])
33
33
34
34
// Looks for a skew protection configuration file. If found, the file is loaded
35
35
// and validated against the schema, throwing a build error if validation
36
- // fails. If valid, the contents are written to the edge redirects file.
36
+ // fails. If valid, the contents are written to the deploy config file.
37
37
const handleSkewProtection = async ( buildDir : string , packagePath ?: string ) => {
38
38
const inputPath = resolve ( buildDir , packagePath ?? '' , FRAMEWORKS_API_SKEW_PROTECTION_PATH )
39
39
const outputPath = resolve ( buildDir , packagePath ?? '' , DEPLOY_CONFIG_DIST_PATH )
@@ -43,13 +43,13 @@ const handleSkewProtection = async (buildDir: string, packagePath?: string) => {
43
43
return
44
44
}
45
45
46
- const edgeRedirects = {
46
+ const deployConfig = {
47
47
skew_protection : skewProtectionConfig ,
48
48
}
49
49
50
50
try {
51
51
await fs . mkdir ( dirname ( outputPath ) , { recursive : true } )
52
- await fs . writeFile ( outputPath , JSON . stringify ( edgeRedirects ) )
52
+ await fs . writeFile ( outputPath , JSON . stringify ( deployConfig ) )
53
53
} catch ( error ) {
54
54
throw new Error ( 'Failed to process skew protection configuration' , { cause : error } )
55
55
}
You can’t perform that action at this time.
0 commit comments