-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
chore(domains): Cloudflare SSL removal when downgrading apps #2527
chore(domains): Cloudflare SSL removal when downgrading apps #2527
Conversation
245522a
to
4da616f
Compare
for (const app of reconciliations.filter((r) => r.customDomain)) { | ||
try { | ||
await starbaseClient.deleteCustomDomain.mutate({ | ||
clientId: app.clientID, | ||
}) | ||
} catch (e) { | ||
console.error(`Failed to delete custom domain for app ${app.clientID}`) | ||
} | ||
} |
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.
Would it be better to execute them asynchronously?
@@ -83,6 +84,7 @@ export const reconcileAppSubscriptions = async ({ | |||
devEmail: app.devEmail, | |||
appName: app.app?.name ?? 'Undefined', | |||
plan, | |||
customDomain: app.customDomain ? true : false, |
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.
customDomain: app.customDomain ? true : false, | |
customDomain: Boolean(app.customDomain) |
1662be7
to
e9b77f0
Compare
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.
modal to confirm downgrade if pro features enabled (e.g. custom domain)
a7c7144
to
6cda509
Compare
Description
Related Issues
Testing
Checklist