Skip to content

Commit

Permalink
Add content-type to s3 metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhammerl committed Nov 30, 2023
1 parent bb1e384 commit 31b2d41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/cloudfront/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ resource "aws_cloudfront_distribution" "cf" {

forwarded_values {
query_string = false
headers = ["Origin"]
headers = [
"Origin",
"Content-Type"
]

cookies {
forward = "none"
Expand Down
1 change: 1 addition & 0 deletions steps/transform/src/handler/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def transform_report(event, context):
result = s3.put_object(
Bucket=website_bucket,
Key="index.html",
ContentType="text/html",
Body=page.encode(),
)

Expand Down

0 comments on commit 31b2d41

Please sign in to comment.