GHHG10's picture
download
raw
609 Bytes
import { Effect } from "effect"
import { PluginV2 } from "../plugin"
export const EnvPlugin = PluginV2.define({
id: PluginV2.ID.make("env"),
effect: Effect.gen(function* () {
return {
"catalog.transform": Effect.fn(function* (evt) {
for (const item of evt.provider.list()) {
const key = item.provider.env.find((env) => process.env[env])
if (!key) continue
evt.provider.update(item.provider.id, (provider) => {
provider.enabled = {
via: "env",
name: key,
}
})
}
}),
}
}),
})

Xet Storage Details

Size:
609 Bytes
·
Xet hash:
fb9711076b5a8517f11fbb3cebf16e79b3d71269fa4b6a1cfa85ecd2563a99fd

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