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

@@ -7,7 +7,7 @@ import { z } from "zod"
import { Identifier } from "./identifier"
import { centsToMicroCents } from "./util/price"
import { User } from "./user"
import { Resource } from "./util/resource"
import { Resource } from "@opencode/cloud-resource"
export namespace Billing {
export const stripe = () =>

View File

@@ -1,5 +1,5 @@
import { drizzle } from "drizzle-orm/postgres-js"
import { Resource } from "../util/resource"
import { Resource } from "@opencode/cloud-resource"
export * from "drizzle-orm"
import postgres from "postgres"

View File

View File

@@ -1,14 +0,0 @@
import { env } from "cloudflare:workers";
export const Resource = new Proxy(
{},
{
get(_target, prop: string) {
if (prop in env) {
const value = env[prop];
return typeof value === "string" ? JSON.parse(value) : value;
}
throw new Error(`"${prop}" is not linked in your sst.config.ts`);
},
}
) as Record<string, any>;