Skip to content

[TRI-1249] Framework: Support for Remix #445

@samejr

Description

@samejr

Build support for Remix into Trigger.dev

Please make sure to use Typescript for all code

Task 1 - Remix Adaptor

  • Create a new folder in packages called remix
  • Create the adaptor for Remix. Use this Next.js adaptor code as reference when creating yours. Include all setup configurations to fully support the framework, e.g. Next.js requires adaptor support for both App and Pages routers.
  • Create a basic Remix project that uses the adaptor in examples/remix folder. Include a basic Job in Trigger.dev, e.g. a simple Job that just does a delay inside it. Screen grab the full Run dashboard page showing it successfully worked. Here are examples of how to do cross-project references in package.json and tsconfig.json.
  • Provide a screen grab of your terminal showing the Adaptor is working

Task 2 – Add a README.md file

  • Create a new README.md file inside the packages/remix folder and copy in the contents from packages/nextjs/README.md. Adjust the wording to reference Remix where needed, including updating the the URLs.

Task 3 – Write the documentation

  • Locate the manual-setup-remix.mdx folder in /docs/_snippets/. Use this file to write your documentation, overwriting any contents of that file. Follow the structure of this Next.js example for reference when writing yours.
  • Update the table at the bottom of the client-adaptors.mdx page with the framework you’ve worked on.

Task 4 – Update the webapp onboarding

  • In the route.tsx page located in _app.orgs.$organizationSlug.projects.$projectParam.setup.remix replace the <FrameworkComingSoon/> component with your new onboarding steps. Follow the same structure as the Next.js example when creating your own. Ignore the very top step for adding this framework to a new project, just focus on the steps to add it to an existing project (so don’t include the <RadioGroup/> toggle selector at the top). Make sure you also include the useProjectSetupComplete(); hook at the top of the page – this triggers a particle effect when the new job is successfully created and redirects to the Jobs list 🥳 .
  • In the FrameworkSelector.tsx file, add “supported” to the framework you’ve worked on.
    CleanShot 2023-09-07 at 16 42 14

TRI-1249

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions