Frank 3 месяцев назад
Родитель
Сommit
22e64cac67

+ 0 - 13
packages/console/app/src/routes/debug/index.ts

@@ -1,13 +0,0 @@
-import type { APIEvent } from "@solidjs/start/server"
-import { json } from "@solidjs/router"
-import { Database } from "@opencode-ai/console-core/drizzle/index.js"
-import { UserTable } from "@opencode-ai/console-core/schema/user.sql.js"
-
-export async function GET(_evt: APIEvent) {
-  return json({
-    data: await Database.use(async (tx) => {
-      const result = await tx.$count(UserTable)
-      return result
-    }),
-  })
-}

+ 2 - 2
packages/console/core/sst-env.d.ts

@@ -91,8 +91,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "R2AccessKey": {
     "R2AccessKey": {

+ 2 - 2
packages/console/function/sst-env.d.ts

@@ -91,8 +91,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "R2AccessKey": {
     "R2AccessKey": {

+ 2 - 2
packages/console/resource/sst-env.d.ts

@@ -91,8 +91,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "R2AccessKey": {
     "R2AccessKey": {

+ 2 - 2
packages/enterprise/sst-env.d.ts

@@ -91,8 +91,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "R2AccessKey": {
     "R2AccessKey": {

+ 2 - 2
packages/function/sst-env.d.ts

@@ -91,8 +91,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "R2AccessKey": {
     "R2AccessKey": {

+ 2 - 2
sst-env.d.ts

@@ -114,8 +114,8 @@ declare module "sst" {
       "type": "sst.sst.Secret"
       "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
-    "HoneycombWebhookSecret": {
-      "type": "random.index/randomPassword.RandomPassword"
+    "INCIDENT_WEBHOOK_SIGNING_SECRET": {
+      "type": "sst.sst.Secret"
       "value": string
       "value": string
     }
     }
     "LogProcessor": {
     "LogProcessor": {