Skip to content

Commit

Permalink
Added options for behaviour prefixes au nz etc
Browse files Browse the repository at this point in the history
  • Loading branch information
finnholland committed Oct 14, 2024
1 parent 6b14c30 commit 5a60fe1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,16 +544,6 @@ export class StaticHosting extends Construct {
}
}

if (enableStaticFileRemap) {
for (const path of this.staticFiles) {
additionalBehaviors[`*.${path}`] = {
origin: s3Origin,
viewerProtocolPolicy: ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
...props.staticFileRemapOptions,
};
}
}

// Note: A given path may override if the same path is defined both remapPaths and remapBackendPaths. This is an
// unlikely scenario but worth noting. e.g. `/robots.txt` should be defined in one of the above but not both.
if (props.remapPaths) {
Expand Down

0 comments on commit 5a60fe1

Please sign in to comment.