Files
twenty/packages/twenty-emails
1fcb8b464c fix: move vite plugins into the packages that use them (#16134)
I was looking into [Dependabot Alert
107](https://github.com/twentyhq/twenty/security/dependabot/107) and
figured that the alert is caused by `vite-plugin-dts`, which is a
development dependency and does not make it into the production build
for it to be dangerous.

However, while at it, I also saw that some packages used plugins from
root package.json while others had them defined in their local
package.json. Therefore, I refactored to move plugins where they're
required and removed a redundant package.

Builds for the following succeed as intended:
- twenty-ui
- twenty-emails
- twenty-website
- twenty-front

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2025-12-01 14:44:19 +00:00
..
2025-11-24 11:21:30 +01:00
2025-04-03 14:26:19 +02:00
2025-04-03 14:26:19 +02:00
2025-11-06 16:28:01 +00:00

Twenty Emails

This package contains the email templates used by Twenty.

Features

  • Email templates built with React Email
  • Internationalization (i18n) support via @lingui/react
  • Local preview server for testing email templates

Getting Started

Starting the Local Preview Server

To start the local preview server for email development:

npx nx start twenty-emails

This will run the development server on port 4001. You can then view your email templates at http://localhost:4001.

Building Emails

To build the email templates:

npx nx build twenty-emails

Email Structure

Each email template is located in the src/emails directory. The templates use various components from the src/components directory to maintain consistent styling and functionality.