mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
workers -> compute <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the Compute experience for deploying, viewing, managing, and monitoring compute instances. - Added Compute navigation, instance detail pages, secrets, logs, deployment dialogs, generated snippets, and CLI commands. - Added filtering, status, availability, and data-loading support for compute instances. - **Updates** - Updated labels, icons, links, feature controls, unified logs, and secret-deletion messaging to use Compute terminology. - Compute routes now replace the previous Workers routes and pages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
26 lines
607 B
TypeScript
26 lines
607 B
TypeScript
import { createFileRoute, Outlet, useMatches } from '@tanstack/react-router'
|
|
|
|
import { ComputeLayout } from '@/components/layouts/ComputeLayout/ComputeLayout'
|
|
|
|
export const Route = createFileRoute('/project/$ref/compute')({
|
|
component: ComputeShell,
|
|
})
|
|
|
|
type ComputeStaticData = {
|
|
computeLayoutTitle?: string
|
|
}
|
|
|
|
function ComputeShell() {
|
|
const title = useMatches({
|
|
select: (matches) =>
|
|
(matches[matches.length - 1]?.staticData as ComputeStaticData | undefined)
|
|
?.computeLayoutTitle ?? '',
|
|
})
|
|
|
|
return (
|
|
<ComputeLayout title={title}>
|
|
<Outlet />
|
|
</ComputeLayout>
|
|
)
|
|
}
|