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

feat: bunny cdn integrations #290

Merged
merged 14 commits into from
Jul 13, 2023
Merged

Conversation

csosamorales
Copy link
Contributor

No description provided.

@csosamorales csosamorales marked this pull request as ready for review July 12, 2023 19:41
const client = (body: string, endpoint: string) => {
if (!env.bunnyCDN.feSigningKey) {
AppLog.error('Missing BunnyCDN signing key');
throw new Error();
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

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();
Copy link
Contributor

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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@csosamorales csosamorales merged commit b490b75 into develop Jul 13, 2023
1 check failed
@csosamorales csosamorales deleted the feat/bunny-cdn-integrations branch July 13, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants