import { Dialog, DialogContent, DialogHeader, DialogSection, DialogSectionSeparator, DialogTitle, } from 'ui' import { EXAMPLE_WORKER } from './workerSnippets' import { WorkerSnippetTabs } from './WorkerSnippetTabs' interface DeployWorkerDialogProps { open: boolean onOpenChange: (open: boolean) => void } const STEPS = [ { title: 'Scaffold the worker', description: 'Creates supabase/workers// with an entrypoint for the runtime you pick.', }, { title: 'Configure it', description: 'Runtime, size, access, and instance count live in supabase/config.toml.', }, { title: 'Push it', description: 'Builds the image and schedules it on a microVM in US West.', }, ] export const DeployWorkerDialog = ({ open, onOpenChange }: DeployWorkerDialogProps) => ( Deploy a worker

Workers are deployed with the Supabase CLI. This dashboard is read-only during the private alpha.

    {STEPS.map((step, index) => (
  1. {index + 1}

    {step.title}

    {step.description}

  2. ))}
)