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 | |
| parent | 37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e (diff) | |
| download | opencode-f821b555140cc41f68c7c034bb82ae0cb07d7321.tar.gz opencode-f821b555140cc41f68c7c034bb82ae0cb07d7321.zip | |
ignore: cloud resource
Diffstat (limited to 'cloud/app')
| -rw-r--r-- | cloud/app/package.json | 2 | ||||
| -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 | ||||
| -rw-r--r-- | cloud/app/tsconfig.json | 12 |
6 files changed, 22 insertions, 6 deletions
diff --git a/cloud/app/package.json b/cloud/app/package.json index 3a236e09b..7e6eaf4b5 100644 --- a/cloud/app/package.json +++ b/cloud/app/package.json @@ -3,7 +3,7 @@ "type": "module", "scripts": { "dev": "vinxi dev --host 0.0.0.0", - "dev:remote": "bun sst shell --target=Solid --stage=dev bun dev", + "dev:remote": "bun sst shell --target=Console --stage=dev bun dev", "build": "vinxi build", "start": "vinxi start", "version": "0.5.28" 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( diff --git a/cloud/app/tsconfig.json b/cloud/app/tsconfig.json index 7d5871a07..2a2352179 100644 --- a/cloud/app/tsconfig.json +++ b/cloud/app/tsconfig.json @@ -1,5 +1,9 @@ { + "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { + "customConditions": [ + "workers" + ], "target": "ESNext", "module": "ESNext", "moduleResolution": "bundler", @@ -10,10 +14,14 @@ "allowJs": true, "strict": true, "noEmit": true, - "types": ["vinxi/types/client"], + "types": [ + "vinxi/types/client" + ], "isolatedModules": true, "paths": { - "~/*": ["./src/*"] + "~/*": [ + "./src/*" + ] } } } |
