ignore: cloud resource

This commit is contained in:
Dax Raad
2025-08-30 00:58:22 -04:00
parent 37f284f9a9
commit f821b55514
20 changed files with 180 additions and 17 deletions

View File

@@ -1,2 +1 @@
/// <reference types="@solidjs/start/env" />
declare module "cloudflare:workers"

View 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,
})
}

View File

@@ -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"

View File

@@ -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(