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

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

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(

View File

@@ -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/*"
]
}
}
}