Skip to content

Commit

Permalink
Rename cf function, update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
js0mmer committed Dec 5, 2024
1 parent 051ca12 commit 6305ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ function createLambdaFunction() {

/**
* forwards host since lambda function url overwrites host (x-forwarded-host is recovered in api/app.ts)
* encodes querystryings since cloudfront can't support it otherwise
* encodes querystryings since cloudfront can't support "/" in querystring otherwise
* @returns cloudfront function
*/
const createCloudFrontInjectionFunction = () =>
new aws.cloudfront.Function('CloudFrontFunction', {
new aws.cloudfront.Function(`peterportal-client-${$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 6305ab2

Please sign in to comment.