Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
fix: missing quote in redirect function
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk committed Aug 1, 2024
1 parent 27984dd commit cfe0c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdkworkshop.com/cdkworkshop.com.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class CdkWorkshop extends Stack {
runtime: cloudfront.FunctionRuntime.JS_2_0,
code: cloudfront.FunctionCode.fromInline(`
function handler(event) {
const newUri = ${props.redirectTarget};
const newUri = '${props.redirectTarget}';
return {
status: '302',
statusDescription: 'Found',
Expand Down

0 comments on commit cfe0c41

Please sign in to comment.