Skip to content

Commit eba572b

Browse files
committed
refactor: update names
1 parent a4f84c0 commit eba572b

File tree

1 file changed

+3
-3
lines changed
  • packages/build/src/plugins_core/frameworks_api

1 file changed

+3
-3
lines changed

packages/build/src/plugins_core/frameworks_api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const OVERRIDE_PROPERTIES = new Set(['redirects!'])
3333

3434
// Looks for a skew protection configuration file. If found, the file is loaded
3535
// 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.
3737
const handleSkewProtection = async (buildDir: string, packagePath?: string) => {
3838
const inputPath = resolve(buildDir, packagePath ?? '', FRAMEWORKS_API_SKEW_PROTECTION_PATH)
3939
const outputPath = resolve(buildDir, packagePath ?? '', DEPLOY_CONFIG_DIST_PATH)
@@ -43,13 +43,13 @@ const handleSkewProtection = async (buildDir: string, packagePath?: string) => {
4343
return
4444
}
4545

46-
const edgeRedirects = {
46+
const deployConfig = {
4747
skew_protection: skewProtectionConfig,
4848
}
4949

5050
try {
5151
await fs.mkdir(dirname(outputPath), { recursive: true })
52-
await fs.writeFile(outputPath, JSON.stringify(edgeRedirects))
52+
await fs.writeFile(outputPath, JSON.stringify(deployConfig))
5353
} catch (error) {
5454
throw new Error('Failed to process skew protection configuration', { cause: error })
5555
}

0 commit comments

Comments
 (0)