11import { domain } from "./stage"
22import { EMAILOCTOPUS_API_KEY } from "./app"
3- import { SECRET } from "./secret"
43
54// Preview stages have no new Console or inference deployment to forward to.
65const migrationDomain =
@@ -20,7 +19,6 @@ const consoleMigration = new sst.Linkable("ConsoleMigration", {
2019new sst . cloudflare . Bucket ( "ZenData" )
2120new sst . cloudflare . Bucket ( "ZenDataNew" )
2221
23- const DISCORD_INCIDENT_WEBHOOK_URL = new sst . Secret ( "DISCORD_INCIDENT_WEBHOOK_URL" )
2422const AWS_SES_ACCESS_KEY_ID = new sst . Secret ( "AWS_SES_ACCESS_KEY_ID" )
2523const AWS_SES_SECRET_ACCESS_KEY = new sst . Secret ( "AWS_SES_SECRET_ACCESS_KEY" )
2624const ENTERPRISE_SALES_INBOX_EMAIL = new sst . Secret ( "ENTERPRISE_SALES_INBOX_EMAIL" )
@@ -33,18 +31,11 @@ const CONSOLE_CRM_LOOKUP_URL = new sst.Linkable("CONSOLE_CRM_LOOKUP_URL", {
3331 properties : { value : `https://${ domain } /console/api/internal/console-account` } ,
3432} )
3533
36- const logProcessor = new sst . cloudflare . Worker ( "LogProcessor" , {
37- handler : "packages/console/function/src/log-processor.ts" ,
38- link : [ SECRET . HoneycombApiKey ] ,
39- } )
40-
4134new sst . cloudflare . x . SolidStart ( "Console" , {
4235 domain,
4336 path : "packages/console/app" ,
4437 link : [
4538 consoleMigration ,
46- DISCORD_INCIDENT_WEBHOOK_URL ,
47- SECRET . HoneycombWebhookSecret ,
4839 EMAILOCTOPUS_API_KEY ,
4940 AWS_SES_ACCESS_KEY_ID ,
5041 AWS_SES_SECRET_ACCESS_KEY ,
@@ -75,7 +66,6 @@ new sst.cloudflare.x.SolidStart("Console", {
7566 ...( bindings ?? [ ] ) ,
7667 { type : "service" , name : "INFERENCE" , service : `opencode-inference-${ $app . stage } ` } ,
7768 ] )
78- args . tailConsumers = [ { service : logProcessor . nodes . worker . scriptName } ]
7969 } ,
8070 } ,
8171 } ,
0 commit comments