Skip to content

Commit

Permalink
Use constant in cf function name
Browse files Browse the repository at this point in the history
  • Loading branch information
js0mmer committed Dec 5, 2024
1 parent 6305ab2 commit 54ef476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function createLambdaFunction() {
* @returns cloudfront function
*/
const createCloudFrontInjectionFunction = () =>
new aws.cloudfront.Function(`peterportal-client-${$app.stage}-CloudFrontFunction`, {
new aws.cloudfront.Function(`${$app.name}-${$app.stage}-CloudFrontFunction`, {
runtime: 'cloudfront-js-2.0',
// this code is copy/pasted from an SST sveltekit component, forwards host and encodes query string
code: `
Expand Down

0 comments on commit 54ef476

Please sign in to comment.