mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ci: ignore
This commit is contained in:
parent
27ae341684
commit
de4660ac12
5 changed files with 34 additions and 2 deletions
1
bun.lock
1
bun.lock
|
|
@ -177,6 +177,7 @@
|
|||
"zod": "catalog:",
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "catalog:",
|
||||
"@tailwindcss/vite": "catalog:",
|
||||
"@types/luxon": "catalog:",
|
||||
"@typescript/native-preview": "catalog:",
|
||||
|
|
|
|||
30
infra/enterprise.ts
Normal file
30
infra/enterprise.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { domain } from "./stage"
|
||||
|
||||
const storage = new sst.cloudflare.Bucket("EnterpriseStorage")
|
||||
const token = new cloudflare.ApiToken("EnterpriseStorageToken", {
|
||||
name: `${$app.name}-${$app.stage}-enterprise-storage`,
|
||||
policies: [
|
||||
{
|
||||
effect: "allow",
|
||||
resources: {
|
||||
"com.cloudflare.api.account.*": "*",
|
||||
},
|
||||
permissionGroups: [
|
||||
{
|
||||
id: "c8d07a38f1654800b34e33e59b4e8f41",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", {
|
||||
domain: "enterprise." + domain,
|
||||
environment: {
|
||||
OPENCODE_STORAGE_ADAPTER: "r2",
|
||||
OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID,
|
||||
OPENCODE_STORAGE_ACCESS_KEY_ID: "---",
|
||||
OPENCODE_STORAGE_SECRET_ACCESS_KEY: "---",
|
||||
OPENCODE_STORAGE_BUCKET: storage.name,
|
||||
},
|
||||
})
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
"zod": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "catalog:",
|
||||
"@tailwindcss/vite": "catalog:",
|
||||
"@typescript/native-preview": "catalog:",
|
||||
"@types/luxon": "catalog:",
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"strict": true,
|
||||
"types": ["vite/client"],
|
||||
"types": ["@cloudflare/workers-types", "vite/client"],
|
||||
"isolatedModules": true,
|
||||
"paths": {
|
||||
"~/*": ["./src/*"]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export default $config({
|
|||
home: "cloudflare",
|
||||
providers: {
|
||||
stripe: {
|
||||
apiKey: process.env.STRIPE_SECRET_KEY,
|
||||
apiKey: process.env.STRIPE_SECRET_KEY!,
|
||||
},
|
||||
planetscale: "0.4.1",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue