INNER CODE UNIT · TypeScript

label

rit3zh/reacticx · cloudflare/cli/index.ts:338

    const label = dir.slice(ROOT.length + 1);
    if (await exists(dir)) log.success(`${label} ${c.dim("· present")}`);
    else {
      log.error(`${label} ${c.dim("· missing — run `bun run cloud pull`")}`);
      blocking += 1;
    }
  }

  for (const spec of [
    { name: landingConfig.bucket, spec: landingConfig, probe: "accordion-landing-asset.mp4" },
    { name: previewsConfig.bucket, spec: previewsConfig, probe: "accordion-preview.webm" },
  ]) {
    try {
      const remote = await objectExists(
        { bucket: spec.spec.bucket, publicOrigin: spec.spec.publicOrigin },
        spec.probe,
      );
      if (remote.exists) log.success(`${spec.name} ${c.dim("· reachable")}`);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…