Title: [TRI-1253] Framework: support for Fastify · Issue #450 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: [TRI-1253] Framework: support for Fastify · Issue #450 · triggerdotdev/trigger.dev
X Title: [TRI-1253] Framework: support for Fastify · Issue #450 · triggerdotdev/trigger.dev
Description: Build support for Fastify into Trigger.dev Please make sure to use Typescript for all code Task 1 - Fastify Adaptor Create a new folder in packages called fastify Create the adaptor for Fastify. Use this Next.js adaptor code as reference...
Open Graph Description: Build support for Fastify into Trigger.dev Please make sure to use Typescript for all code Task 1 - Fastify Adaptor Create a new folder in packages called fastify Create the adaptor for Fastify. Us...
X Description: Build support for Fastify into Trigger.dev Please make sure to use Typescript for all code Task 1 - Fastify Adaptor Create a new folder in packages called fastify Create the adaptor for Fastify. Us...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/450
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[TRI-1253] Framework: support for Fastify","articleBody":"# Build support for Fastify into Trigger.dev\r\n\r\n**_Please make sure to use Typescript for all code_**\r\n\r\n### Task 1 - Fastify Adaptor\r\n- [ ] Create a new folder in `packages` called `fastify`\r\n- [ ] Create the adaptor for Fastify. Use [this Next.js adaptor](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/nextjs/src/index.ts) 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.\r\n- [ ] Create a basic Fastify project that uses the adaptor in `examples/fastify` 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](https://github.com/triggerdotdev/trigger.dev/blob/aae143d96e1cd3c2b2b2ccb5120f75651a4261d0/examples/nextjs-example/package.json#L14) and [tsconfig.json](https://github.com/triggerdotdev/trigger.dev/blob/aae143d96e1cd3c2b2b2ccb5120f75651a4261d0/examples/nextjs-example/tsconfig.json#L31).\r\n- [ ] Provide a screen grab of your terminal showing the Adaptor is working\r\n\r\n### Task 2 – Add a README.md file\r\n- [ ] Create a new README.md file inside the `packages/fastify` folder and copy in the contents from `packages/nextjs/README.md`. Adjust the wording to reference Fastify where needed, including updating the the URLs.\r\n\r\n### Task 3 – Write the documentation\r\n- [ ] Locate the `manual-setup-fastify.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](https://trigger.dev/docs/documentation/guides/manual/nextjs) for reference when writing yours.\r\n- [ ] Update the table at the bottom of the `client-adaptors.mdx` page with the framework you’ve worked on.\r\n\r\n### Task 4 – Update the webapp onboarding\r\n- [ ] In the `route.tsx` page located in `_app.orgs.$organizationSlug.projects.$projectParam.setup.fastify` replace the `\u003cFrameworkComingSoon/>` 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 `\u003cRadioGroup/>` 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 🥳 .\r\n- [ ] In the `FrameworkSelector.tsx` file, add “supported” to the framework you’ve worked on.\r\n\n\n\u003csub>[TRI-1253](https://linear.app/triggerdotdev/issue/TRI-1253/framework-support-for-fastify)\u003c/sub>","author":{"url":"https://github.com/samejr","@type":"Person","name":"samejr"},"datePublished":"2023-09-08T15:56:22Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/450"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56fdd7a2-2a4f-8f6c-0e92-0504e1327ade |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A222:1DD51C:2C946C:425A17:6AFADE73 |
| html-safe-nonce | 2fb203a7c4bcf7d6a33c98844bdb868be1fcfd39f41f00ac76abbc0a1e996f26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjIyOjFERDUxQzoyQzk0NkM6NDI1QTE3OjZBRkFERTczIiwidmlzaXRvcl9pZCI6Ijg2MzEzNDk0NDMwMTE3MzEwNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e29b7da1b2b246f0c55a796f5c5eaeccb15d7dc6778b89bf845d8456b7e4344e |
| hovercard-subject-tag | issue:1887941244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/450/issue_layout |
| twitter:image | https://opengraph.githubassets.com/553d11e9258226eb3c62a7c190d57b229b3665d265880f993576ea2b02008094/triggerdotdev/trigger.dev/issues/450 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/553d11e9258226eb3c62a7c190d57b229b3665d265880f993576ea2b02008094/triggerdotdev/trigger.dev/issues/450 |
| og:image:alt | Build support for Fastify into Trigger.dev Please make sure to use Typescript for all code Task 1 - Fastify Adaptor Create a new folder in packages called fastify Create the adaptor for Fastify. Us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samejr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width