ignore: cloud resource
This commit is contained in:
parent
37f284f9a9
commit
f821b55514
20 changed files with 180 additions and 17 deletions
|
|
@ -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"
|
||||
|
|
|
|||
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(
|
||||
|
|
|
|||
|
|
@ -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/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue