Skip to content
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

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

rafaelromcar-parabol
Copy link
Contributor

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.

} 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}`)
Copy link
Member

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>
@mattkrick mattkrick merged commit 7f3051d into master Jan 21, 2025
6 checks passed
@mattkrick mattkrick deleted the fix/s3-bucket-name branch January 21, 2025 23:50
Dschoordsch added a commit that referenced this pull request Jan 22, 2025
Dschoordsch added a commit that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Template assets not being uploaded to AWS S3 bucket
2 participants