We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29e424c commit da229deCopy full SHA for da229de
1 file changed
packages/web-backend/src/Tinybird/index.ts
@@ -31,20 +31,17 @@ export class Tinybird extends Effect.Service<Tinybird>()("Tinybird", {
31
const token = env.TINYBIRD_TOKEN;
32
const host = env.TINYBIRD_HOST;
33
34
- if (!host) {
35
- yield* Effect.die(new Error("TINYBIRD_HOST must be set"));
36
- }
+ const enabled = Boolean(token && host);
37
38
yield* Effect.logDebug("Initializing Tinybird service", {
39
hasToken: Boolean(token),
40
- host,
+ hasHost: Boolean(host),
+ enabled,
41
});
42
43
- const enabled = Boolean(token);
44
-
45
if (!enabled) {
46
yield* Effect.logWarning(
47
- "Tinybird is disabled: TINYBIRD_TOKEN is not set",
+ "Tinybird is disabled: TINYBIRD_TOKEN and/or TINYBIRD_HOST not set",
48
);
49
}
50
0 commit comments