Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

346 B
Raw Blame
const LEGACY_SETTINGS_DRIVE = /\/settings\/drive\/?$/;

/**
 * Where a legacy settings drive URL now lives: `/settings/drive` →
 * `/resource/sandbox-storage`, keeping any `/:workspaceSlug` prefix.
 */
export const legacySandboxStoragePath = (pathname: string): string =>
  pathname.replace(LEGACY_SETTINGS_DRIVE, '/resource/sandbox-storage');