import type { ReactNode } from "react"; import { Rocket } from "lucide-react"; import { dashboardLink, personalizationEnabled, productionDashboardOrigin, } from "@/lib/dashboard-link"; import { DashboardAnchor } from "./dashboard-anchor"; const ENV_VARS = "/_/environment-variables"; const code = "rounded border bg-fd-muted px-1 py-px font-mono text-[0.75rem] text-fd-foreground"; const link = "font-medium text-fd-primary underline-offset-2 hover:underline"; /** * "Deploy this example", added after an example page's repo card by lib/remark-deploy-example.ts. * `children` is the commands code block, so signed-in readers see their own project ref in it. */ export function DeployExample({ folder, children }: { folder: string; children?: ReactNode }) { const envVars = personalizationEnabled ? ( environment variables ) : ( environment variables ); return (

Deploy this example to your project

Copies {folder} from GitHub, installs it, and deploys its tasks to your project’s production environment.

{children}

If the example has a .env.example, set those variables in your project’s {envVars} before deploying. To run the tasks on your machine instead, use{" "} dev in place of deploy.

); }