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.
372 B 路 8 lines
TypeScript
123456789export const WORKSPACE_SLUG_COOKIE = "workspace-slug";
// Client-side workspace switch: set the cookie the proxy reads, then hard-reload// so every server component re-resolves against the new workspace.export function switchWorkspace(slug: string, href = "/overview") { document.cookie = `${WORKSPACE_SLUG_COOKIE}=${slug}; path=/;`; window.location.href = href;}