Skip to content

Commit

Permalink
Fix TS lint and use the right websiteEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Sep 17, 2024
1 parent 90f5c32 commit a043f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws-ts-s3-folder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const siteBucket = new aws.s3.Bucket("s3-website-bucket", {
},
});

new aws.s3.BucketWebsiteConfigurationV2("s3-website-bucket-config", {
const siteBucketWebsiteConfig = new aws.s3.BucketWebsiteConfigurationV2("s3-website-bucket-config", {
bucket: siteBucket.id,
indexDocument: {
suffix: "index.html",
Expand Down Expand Up @@ -56,4 +56,4 @@ const bucketPolicy = new aws.s3.BucketPolicy("bucketPolicy", {

// Stack exports
export const bucketName = siteBucket.bucket;
export const websiteUrl = siteBucket.websiteEndpoint;
export const websiteUrl = siteBucketWebsiteConfig.websiteEndpoint;

0 comments on commit a043f57

Please sign in to comment.