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
Something went wrong. Try again.
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;}