@@ -69,38 +69,6 @@ export const auth = new sst.cloudflare.Worker("AuthApi", {
6969// GATEWAY
7070////////////////
7171
72- export const stripeWebhook = new stripe . WebhookEndpoint ( "StripeWebhookEndpoint" , {
73- url : $interpolate `https://${ domain } /stripe/webhook` ,
74- enabledEvents : [
75- "checkout.session.async_payment_failed" ,
76- "checkout.session.async_payment_succeeded" ,
77- "checkout.session.completed" ,
78- "checkout.session.expired" ,
79- "charge.refunded" ,
80- "invoice.payment_succeeded" ,
81- "invoice.payment_failed" ,
82- "invoice.payment_action_required" ,
83- "customer.created" ,
84- "customer.deleted" ,
85- "customer.updated" ,
86- "customer.discount.created" ,
87- "customer.discount.deleted" ,
88- "customer.discount.updated" ,
89- "customer.source.created" ,
90- "customer.source.deleted" ,
91- "customer.source.expiring" ,
92- "customer.source.updated" ,
93- "customer.subscription.created" ,
94- "customer.subscription.deleted" ,
95- "customer.subscription.paused" ,
96- "customer.subscription.pending_update_applied" ,
97- "customer.subscription.pending_update_expired" ,
98- "customer.subscription.resumed" ,
99- "customer.subscription.trial_will_end" ,
100- "customer.subscription.updated" ,
101- ] ,
102- } )
103-
10472const zenLiteProduct = new stripe . Product ( "ZenLite" , {
10573 name : "OpenCode Go" ,
10674} )
@@ -229,9 +197,6 @@ const consoleMigration = new sst.Linkable("ConsoleMigration", {
229197 inferenceUrl : migrationDomain ? `https://${ migrationDomain } /inference` : "" ,
230198 } ,
231199} )
232- const STRIPE_WEBHOOK_SECRET = new sst . Linkable ( "STRIPE_WEBHOOK_SECRET" , {
233- properties : { value : stripeWebhook . secret } ,
234- } )
235200
236201////////////////
237202// CONSOLE
@@ -261,11 +226,8 @@ new sst.cloudflare.x.SolidStart("Console", {
261226 bucket ,
262227 bucketNew ,
263228 database ,
264- SECRET . UpstashRedisRestUrl ,
265- SECRET . UpstashRedisRestToken ,
266229 AUTH_API_URL ,
267230 consoleMigration ,
268- STRIPE_WEBHOOK_SECRET ,
269231 SECRET . SupportApiKey ,
270232 DISCORD_INCIDENT_WEBHOOK_URL ,
271233 SECRET . HoneycombWebhookSecret ,
0 commit comments