mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 19:24:22 +01:00
ignore: cloud resource
This commit is contained in:
1
cloud/app/src/global.d.ts
vendored
1
cloud/app/src/global.d.ts
vendored
@@ -1,2 +1 @@
|
||||
/// <reference types="@solidjs/start/env" />
|
||||
declare module "cloudflare:workers"
|
||||
|
||||
9
cloud/app/src/routes/debug/index.ts
Normal file
9
cloud/app/src/routes/debug/index.ts
Normal file
@@ -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,
|
||||
})
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user