Files
triggerdotdev--trigger.dev/docs/v3/trigger-folder.mdx
T
Matt Aitken afe7f410c7 v3 docs improvements (#993)
* WIP on adding versioning to the docs to make it less confusing

* Link to v3 from v2 and vice versa. Also added a warning to the v2 docs

* Make v3 the default

* Trigger config docs about bundling

* Next stpe to triggering guide from tasks overview

* Server actions guidance for triggering

* Moved the trigger.config docs to the end of fundamentals
2024-04-02 14:32:28 +01:00

26 lines
985 B
Plaintext

---
title: "/trigger folders"
description: "Your tasks live inside /trigger folders. Code in these is bundled and deployed together."
---
## What gets bundled?
We automatically bundle everything for your tasks. This includes:
- Your tasks (they can be in any file inside a /trigger folder, they just need to be exported with a name).
- Imported npm packages.
- Other imports from your code.
Mostly this means you shouldn't need to think about what gets bundled. Just write your tasks and we'll take care of the rest. If you need to alter the bundling you use the [trigger.config file](/v3/trigger-config).
## Multiple `/trigger` folders
You can have multiple `/trigger` folders in your repository.
- Each `/trigger` folder can have many tasks exported from it.
- Each file inside a `/trigger` folder can export many tasks.
### (Optional) configuration
It is possible to manually set one or more folders as `/trigger` folders in your [trigger.config file](/v3/trigger-config).