Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
1234567891011121314151617181920212223242526272829import type { Hono } from "hono";
import type { SlackConfig, SlackEnv } from "@/routes/slack/config";
export const TEST_SIGNING_SECRET = "test-signing-secret";
export const TEST_SLACK_CONFIG: SlackConfig = { signingSecret: TEST_SIGNING_SECRET, clientId: "test-client-id", clientSecret: "test-client-secret", aiGatewayApiKey: "test-key", dashboardUrl: "http://localhost:3000",};
/** * Put the slack config on the context, the way `createSlackRoute`'s middleware * does, for suites that mount individual handlers instead of the whole route. */export function withSlackConfig<T extends Hono<SlackEnv>>( app: T, overrides: Partial<SlackConfig> = {},): T { app.use("*", async (c, next) => { c.set("slackConfig", { ...TEST_SLACK_CONFIG, ...overrides }); await next(); }); return app;}