Skip to content

Commit 3703f98

Browse files
committed
Remix onboarding now uses the CLI init command
1 parent 2a42942 commit 3703f98

File tree

1 file changed

+12
-22
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.setup.remix

1 file changed

+12
-22
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.setup.remix/route.tsx

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { useProject } from "~/hooks/useProject";
2525
import { Handle } from "~/utils/handle";
2626
import { projectSetupPath, trimTrailingSlash } from "~/utils/pathBuilder";
2727
import { Callout } from "~/components/primitives/Callout";
28-
import { RunDevCommand, TriggerDevStep } from "~/components/SetupCommands";
28+
import { InitCommand, RunDevCommand, TriggerDevStep } from "~/components/SetupCommands";
2929
import { Badge } from "~/components/primitives/Badge";
3030

3131
export const handle: Handle = {
@@ -38,6 +38,8 @@ export default function SetUpRemix() {
3838
useProjectSetupComplete();
3939
const devEnvironment = useDevEnvironment();
4040
invariant(devEnvironment, "Dev environment must be defined");
41+
const appOrigin = useAppOrigin();
42+
4143
return (
4244
<PageGradient>
4345
<div className="mx-auto max-w-3xl">
@@ -75,28 +77,16 @@ export default function SetUpRemix() {
7577
<div>
7678
<StepNumber
7779
stepNumber="1"
78-
title="Follow the steps from the Remix manual installation guide"
80+
title="Run the CLI 'init' command in an existing Remix project"
7981
/>
80-
<StepContentContainer className="flex flex-col gap-2">
81-
<Paragraph className="mt-2">Copy your server API Key to your clipboard:</Paragraph>
82-
<div className="mb-2 flex w-full items-center justify-between">
83-
<ClipboardField
84-
secure
85-
className="w-fit"
86-
value={devEnvironment.apiKey}
87-
variant={"secondary/medium"}
88-
icon={<Badge variant="outline">Server</Badge>}
89-
/>
90-
</div>
91-
<Paragraph>Now follow this guide:</Paragraph>
92-
<LinkButton
93-
to="https://trigger.dev/docs/documentation/guides/manual/remix"
94-
variant="primary/medium"
95-
TrailingIcon="external-link"
96-
>
97-
Manual installation guide
98-
</LinkButton>
99-
<div className="flex items-start justify-start gap-2"></div>
82+
<StepContentContainer>
83+
<InitCommand appOrigin={appOrigin} apiKey={devEnvironment.apiKey} />
84+
85+
<Paragraph spacing variant="small">
86+
You’ll notice a new folder in your project called 'jobs'. We’ve added a very simple
87+
example Job in <InlineCode variant="extra-small">example.server.ts</InlineCode> to
88+
help you get started.
89+
</Paragraph>
10090
</StepContentContainer>
10191
<StepNumber stepNumber="2" title="Run your Remix app" />
10292
<StepContentContainer>

0 commit comments

Comments
 (0)