Skip to content

Commit de4660a

Browse files
committed
ci: ignore
1 parent 27ae341 commit de4660a

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/enterprise.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { domain } from "./stage"
2+
3+
const storage = new sst.cloudflare.Bucket("EnterpriseStorage")
4+
const token = new cloudflare.ApiToken("EnterpriseStorageToken", {
5+
name: `${$app.name}-${$app.stage}-enterprise-storage`,
6+
policies: [
7+
{
8+
effect: "allow",
9+
resources: {
10+
"com.cloudflare.api.account.*": "*",
11+
},
12+
permissionGroups: [
13+
{
14+
id: "c8d07a38f1654800b34e33e59b4e8f41",
15+
},
16+
],
17+
},
18+
],
19+
})
20+
21+
const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", {
22+
domain: "enterprise." + domain,
23+
environment: {
24+
OPENCODE_STORAGE_ADAPTER: "r2",
25+
OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID,
26+
OPENCODE_STORAGE_ACCESS_KEY_ID: "---",
27+
OPENCODE_STORAGE_SECRET_ACCESS_KEY: "---",
28+
OPENCODE_STORAGE_BUCKET: storage.name,
29+
},
30+
})

packages/enterprise/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"zod": "catalog:"
2525
},
2626
"devDependencies": {
27+
"@cloudflare/workers-types": "catalog:",
2728
"@tailwindcss/vite": "catalog:",
2829
"@typescript/native-preview": "catalog:",
2930
"@types/luxon": "catalog:",

packages/enterprise/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"allowJs": true,
1212
"noEmit": true,
1313
"strict": true,
14-
"types": ["vite/client"],
14+
"types": ["@cloudflare/workers-types", "vite/client"],
1515
"isolatedModules": true,
1616
"paths": {
1717
"~/*": ["./src/*"]

sst.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default $config({
99
home: "cloudflare",
1010
providers: {
1111
stripe: {
12-
apiKey: process.env.STRIPE_SECRET_KEY,
12+
apiKey: process.env.STRIPE_SECRET_KEY!,
1313
},
1414
planetscale: "0.4.1",
1515
},

0 commit comments

Comments
 (0)