GHHG10's picture
download
raw
658 Bytes
#!/usr/bin/env bun
import { $ } from "bun"
import path from "path"
import { Subscription } from "../src/subscription"
const stage = process.argv[2]
if (!stage) throw new Error("Stage is required")
const root = path.resolve(process.cwd(), "..", "..", "..")
// read the secret
const ret = await $`bun sst secret list --fallback`.cwd(root).text()
const lines = ret.split("\n")
const value = lines.find((line) => line.startsWith("ZEN_LIMITS"))?.split("=")[1]
if (!value) throw new Error("ZEN_LIMITS not found")
// validate value
Subscription.validate(JSON.parse(value))
// update the secret
await $`bun sst secret set ZEN_LIMITS ${value} --stage ${stage}`

Xet Storage Details

Size:
658 Bytes
·
Xet hash:
18dd50f32ce7a71f5cd5d3119662fc17cefe5b741630ce8b3a10642497082eef

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.