Skip to content

Commit

Permalink
refactor: rename fpcdn typos
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Nov 20, 2023
1 parent d95e2bc commit 3233c3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proxy/handlers/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function downloadAgent({ httpRequest, logger, path }: DownloadAgent

const domain = new URL(httpRequest.url).hostname

const url = new URL(`https://${config.fpdcdn}`)
const url = new URL(`https://${config.fpcdn}`)
url.pathname = getEndpoint(apiKey, version, loaderVersion)
addTrafficMonitoringSearchParamsForProCDN(url)

Expand Down
2 changes: 1 addition & 1 deletion proxy/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const config = {
fpdcdn: '__FPCDN__',
fpcdn: '__FPCDN__',
ingressApi: '__INGRESS_API__',
}
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function makeConfig(opts, entryFile, artifactName, functionJsonPath, transformFu
})

const env = {
fpcnd: process.env.FPCDN ?? 'fpcdn.io',
fpcdn: process.env.FPCDN ?? 'fpcdn.io',
ingressApi: process.env.INGRESS_API ?? 'api.fpjs.io',
}

Expand Down Expand Up @@ -74,7 +74,7 @@ function makeConfig(opts, entryFile, artifactName, functionJsonPath, transformFu
commonjs(),
nodeResolve({ preferBuiltins: false, exportConditions: ['node'] }),
replace({
__FPCDN__: env.fpcnd,
__FPCDN__: env.fpcdn,
__INGRESS_API__: env.ingressApi,
__azure_function_version__: packageJson.version,
preventAssignment: true,
Expand Down

0 comments on commit 3233c3b

Please sign in to comment.