From f821b555140cc41f68c7c034bb82ae0cb07d7321 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sat, 30 Aug 2025 00:58:22 -0400 Subject: ignore: cloud resource --- cloud/app/src/global.d.ts | 1 - cloud/app/src/routes/debug/index.ts | 9 +++++++++ cloud/app/src/routes/gateway/v1/chat/completions.ts | 2 +- cloud/app/src/routes/stripe/webhook.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 cloud/app/src/routes/debug/index.ts (limited to 'cloud/app/src') diff --git a/cloud/app/src/global.d.ts b/cloud/app/src/global.d.ts index a44606d2e..dc6f10c22 100644 --- a/cloud/app/src/global.d.ts +++ b/cloud/app/src/global.d.ts @@ -1,2 +1 @@ /// -declare module "cloudflare:workers" diff --git a/cloud/app/src/routes/debug/index.ts b/cloud/app/src/routes/debug/index.ts new file mode 100644 index 000000000..1753cf59d --- /dev/null +++ b/cloud/app/src/routes/debug/index.ts @@ -0,0 +1,9 @@ +import type { APIEvent } from "@solidjs/start/server" +import { Resource } from "@opencode/cloud-resource" +import { json } from "@solidjs/router" + +export async function GET(evt: APIEvent) { + return json({ + data: Resource.Database.host, + }) +} diff --git a/cloud/app/src/routes/gateway/v1/chat/completions.ts b/cloud/app/src/routes/gateway/v1/chat/completions.ts index 95c2c268d..671b589c5 100644 --- a/cloud/app/src/routes/gateway/v1/chat/completions.ts +++ b/cloud/app/src/routes/gateway/v1/chat/completions.ts @@ -1,4 +1,4 @@ -import { Resource } from "@opencode/cloud-core/util/resource.js" +import { Resource } from "@opencode/cloud-resource" import { Billing } from "@opencode/cloud-core/billing.js" import type { APIEvent } from "@solidjs/start/server" import { Database, eq, sql } from "@opencode/cloud-core/drizzle/index.js" diff --git a/cloud/app/src/routes/stripe/webhook.ts b/cloud/app/src/routes/stripe/webhook.ts index 29f0f2484..61d14a645 100644 --- a/cloud/app/src/routes/stripe/webhook.ts +++ b/cloud/app/src/routes/stripe/webhook.ts @@ -5,7 +5,7 @@ import { BillingTable, PaymentTable } from "@opencode/cloud-core/schema/billing. import { Identifier } from "@opencode/cloud-core/identifier.js" import { centsToMicroCents } from "@opencode/cloud-core/util/price.js" import { Actor } from "@opencode/cloud-core/actor.js" -import { Resource } from "@opencode/cloud-core/util/resource.js" +import { Resource } from "@opencode/cloud-resource" export async function POST(input: APIEvent) { const body = await Billing.stripe().webhooks.constructEventAsync( -- cgit v1.2.3