-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: bunny cdn integrations #290
Conversation
2cfb61a
to
c900272
Compare
const client = (body: string, endpoint: string) => { | ||
if (!env.bunnyCDN.feSigningKey) { | ||
AppLog.error('Missing BunnyCDN signing key'); | ||
throw new Error(); |
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.
should we add a message to all these errors?
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.
seems like the async thunk already treats the error there, we should only throw the error here an treat it there with AppLog
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.
gotcha
|
||
if (!env.bunnyCDN.createPullzone) { | ||
AppLog.error('Missing BunnyCDN create pullzone endpoint'); | ||
throw new Error(); |
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.
same here
|
||
if (!env.bunnyCDN.verifyPullzone) { | ||
AppLog.error('Missing BunnyCDN verify pullzone endpoint'); | ||
throw new Error(); |
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.
same here
No description provided.