Skip to content

Commit 26b7862

Browse files
committed
common cli needs to setup blobby
1 parent 51f40df commit 26b7862

File tree

1 file changed

+11
-6
lines changed
  • typescript/packages/common-cli

1 file changed

+11
-6
lines changed

typescript/packages/common-cli/main.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
// Load .env file
22
import { parse } from "https://deno.land/[email protected]/flags/mod.ts";
3-
import { CharmManager, compileRecipe, storage } from "@commontools/charm";
3+
import {
4+
CharmManager,
5+
compileRecipe,
6+
setBobbyServerUrl,
7+
storage,
8+
} from "@commontools/charm";
49
import { getEntityId, isStream } from "@commontools/runner";
510

611
const { space, charmId, recipeFile, cause } = parse(Deno.args);
712

8-
storage.setRemoteStorage(
9-
new URL(
10-
Deno.env.get("TOOLSHED_API_URL") ?? "https://toolshed.saga-castor.ts.net/",
11-
),
12-
);
13+
const toolshedUrl = Deno.env.get("TOOLSHED_API_URL") ??
14+
"https://toolshed.saga-castor.ts.net/";
15+
16+
storage.setRemoteStorage(new URL(toolshedUrl));
17+
setBobbyServerUrl(toolshedUrl);
1318

1419
async function main() {
1520
const manager = new CharmManager(space ?? "common-cli");

0 commit comments

Comments
 (0)