@@ -25,7 +25,7 @@ import { useProject } from "~/hooks/useProject";
25
25
import { Handle } from "~/utils/handle" ;
26
26
import { projectSetupPath , trimTrailingSlash } from "~/utils/pathBuilder" ;
27
27
import { Callout } from "~/components/primitives/Callout" ;
28
- import { RunDevCommand , TriggerDevStep } from "~/components/SetupCommands" ;
28
+ import { InitCommand , RunDevCommand , TriggerDevStep } from "~/components/SetupCommands" ;
29
29
import { Badge } from "~/components/primitives/Badge" ;
30
30
31
31
export const handle : Handle = {
@@ -38,6 +38,8 @@ export default function SetUpRemix() {
38
38
useProjectSetupComplete ( ) ;
39
39
const devEnvironment = useDevEnvironment ( ) ;
40
40
invariant ( devEnvironment , "Dev environment must be defined" ) ;
41
+ const appOrigin = useAppOrigin ( ) ;
42
+
41
43
return (
42
44
< PageGradient >
43
45
< div className = "mx-auto max-w-3xl" >
@@ -75,28 +77,16 @@ export default function SetUpRemix() {
75
77
< div >
76
78
< StepNumber
77
79
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 "
79
81
/>
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 >
100
90
</ StepContentContainer >
101
91
< StepNumber stepNumber = "2" title = "Run your Remix app" />
102
92
< StepContentContainer >
0 commit comments