mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-13 12:54:58 +01:00
ignore: cloud resource
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Resource } from "@opencode/cloud-resource"
|
||||
import { defineConfig } from "drizzle-kit"
|
||||
import { Resource } from "./src/util/resource"
|
||||
|
||||
export default defineConfig({
|
||||
out: "./migrations/",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-sts": "3.782.0",
|
||||
"@opencode/cloud-resource": "workspace:*",
|
||||
"drizzle-orm": "0.41.0",
|
||||
"postgres": "3.4.7",
|
||||
"stripe": "18.0.0",
|
||||
|
||||
@@ -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 = () =>
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
0
cloud/core/src/util/env.cloudflare.ts
Normal file
0
cloud/core/src/util/env.cloudflare.ts
Normal 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>;
|
||||
Reference in New Issue
Block a user