diff options
| author | Dax Raad <[email protected]> | 2025-08-30 00:58:22 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-30 00:58:22 -0400 |
| commit | f821b555140cc41f68c7c034bb82ae0cb07d7321 (patch) | |
| tree | 1f7f5b7d6534f02809bdded6ab311603930cfa0e /cloud/app/src | |
| parent | 37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e (diff) | |
| download | opencode-f821b555140cc41f68c7c034bb82ae0cb07d7321.tar.gz opencode-f821b555140cc41f68c7c034bb82ae0cb07d7321.zip | |
ignore: cloud resource
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/global.d.ts | 1 | ||||
| -rw-r--r-- | cloud/app/src/routes/debug/index.ts | 9 | ||||
| -rw-r--r-- | cloud/app/src/routes/gateway/v1/chat/completions.ts | 2 | ||||
| -rw-r--r-- | cloud/app/src/routes/stripe/webhook.ts | 2 |
4 files changed, 11 insertions, 3 deletions
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 @@ /// <reference types="@solidjs/start/env" /> -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( |
