-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/do 1357 cdk v2 templating #1395
Conversation
…ch version update to match release numbers
- clarify which headers are needed for each - make the header list customisable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few formatting comments
@@ -33,7 +33,7 @@ export class PathRemapFunction extends Construct { | |||
local: new Esbuild({ | |||
entryPoints: [join(__dirname, "handlers/remap.ts")], | |||
define: { | |||
"process.env.REMAP_PATH": options.path, | |||
"process.env.REMAP_PATH": '"' + options.path + '"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be changed to:
"process.env.REMAP_PATH": `"${options.path}"`,
I think it's just a little cleaner
"x-forwarded-host", // Origin response may vary depending on the domain/path based on Feature Environment | ||
"x-prerender", // Origin response may vary depending on whether the request is from end user or prerender service. | ||
]; | ||
if (props.additionalDefaultCacheKeyHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about the spread operator here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of the proposed changes
Screenshots (if applicable)
Other solutions considered (if any)
Notes to PR author
Notes to reviewers
🛈 When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback