INNER CODE UNIT · TypeScript

ensureConfig

cloudflare/serverless-registry · index.ts:84

const ensureConfig = (env: Env): boolean => {
  if (!env.REGISTRY) {
    console.error(
      "env.REGISTRY is not setup. Please setup an R2 bucket and add the binding in your wrangler config file. Try 'npx wrangler --env production r2 bucket create r2-registry'",
    );
    return false;
  }

  return true;
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…