-
Notifications
You must be signed in to change notification settings - Fork 336
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
fix: S3 bucket name used from the application configuration instead of infered from CDN_URL #10661
Conversation
…f infered from CDN_URL
} catch (e) { | ||
if (e instanceof Error && e.name === 'NotFound') return false | ||
else { | ||
Logger.log(`Invalid error ${(e as Error).name}`) | ||
throw new Error(`Can't verify if the object ${Key} is in the S3 bucket ${this.bucket}`) |
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.
-1 this will be a breaking change, it may work, but IIRC there was some case where s3 would error, but it would still exist. Since we're getting off S3 anyways, I say we keep the result the same (return true if error) but let's leave the log in so we can see under what case that's true
Signed-off-by: Matt Krick <matt.krick@gmail.com>
Signed-off-by: Matt Krick <matt.krick@gmail.com>
Description
preDeploy wasn't uploading template assets to the AWS S3 bucket.
Testing scenarios
Clean-up the local-development folder of our AWS S3 bucket and run preDeploy. It should push all files, including the templates.