diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx index 128aab7ab6fd..f1fdc6425f57 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx @@ -181,13 +181,13 @@ export const SettingsDataModelFieldSelectForm = ({ const handleAddOption = () => { const newOptions = getOptionsWithNewOption(); - setFormValue('options', newOptions); + setFormValue('options', newOptions, { shouldDirty: true }); }; const handleInputEnter = () => { const newOptions = getOptionsWithNewOption(); - setFormValue('options', newOptions); + setFormValue('options', newOptions, { shouldDirty: true }); }; return ( diff --git a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx b/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx deleted file mode 100644 index 6eb28b045504..000000000000 --- a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx +++ /dev/null @@ -1,240 +0,0 @@ ---- -title: Environment Variables -icon: TbServer -image: /images/user-guide/table-views/table.png ---- - -import OptionTable from '@site/src/theme/OptionTable' - -# Setup Messaging & Calendar sync - -Twenty offers integrations with Gmail and Google Calendar. To enable these features, you need to connect to register the following recurring jobs: -``` -# from your worker container -yarn command:prod cron:messaging:messages-import -yarn command:prod cron:messaging:message-list-fetch -yarn command:prod cron:calendar:calendar-event-list-fetch -``` - -# Setup Environment Variables - -## Frontend - - - - -## Backend - -### Config - - - -### Security - - -### Tokens - -', 'Secret used for the access tokens'], - ['ACCESS_TOKEN_EXPIRES_IN', '30m', 'Access token expiration time'], - ['LOGIN_TOKEN_SECRET', '', 'Secret used for the login tokens'], - ['LOGIN_TOKEN_EXPIRES_IN', '15m', 'Login token expiration time'], - ['REFRESH_TOKEN_SECRET', '', 'Secret used for the refresh tokens'], - ['REFRESH_TOKEN_EXPIRES_IN', '90d', 'Refresh token expiration time'], - ['REFRESH_TOKEN_COOL_DOWN', '1m', 'Refresh token cooldown'], - ['FILE_TOKEN_SECRET', '', 'Secret used for the file tokens'], - ['FILE_TOKEN_EXPIRES_IN', '1d', 'File token expiration time'], - ['API_TOKEN_EXPIRES_IN', '1000y', 'Api token expiration time'], - ]}> - -### Auth - - - -### Email - - - -#### Email SMTP Server configuration examples - - - - - - You will need to provision an [App Password](https://support.google.com/accounts/answer/185833). - - EMAIL_SMTP_HOST=smtp.gmail.com - - EMAIL_SMTP_PORT=465 - - EMAIL_SMTP_USER=gmail_email_address - - EMAIL_SMTP_PASSWORD='gmail_app_password' - - - - - - Keep in mind that if you have 2FA enabled, you will need to provision an [App Password](https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9). - - EMAIL_SMTP_HOST=smtp.office365.com - - EMAIL_SMTP_PORT=587 - - EMAIL_SMTP_USER=office365_email_address - - EMAIL_SMTP_PASSWORD='office365_password' - - - - - - **smtp4dev** is a fake SMTP email server for development and testing. - - Run the smtp4dev image: `docker run --rm -it -p 8090:80 -p 2525:25 rnwood/smtp4dev` - - Access the smtp4dev ui here: [http://localhost:8090](http://localhost:8090) - - Set the following env variables: - - EMAIL_SMTP_HOST=localhost - - EMAIL_SMTP_PORT=2525 - - - - - -### Storage - - - -### Custom Code Execution - - - -### Message Queue - - - -### Logging - - - - -### Data enrichment and AI - - - -### Serverless functions -This feature is WIP and is not yet useful for most users. - - - - - -### Support Chat - -', 'Suport chat key'], - ['SUPPORT_FRONT_CHAT_ID', '', 'Support chat id'], - ]}> - -### Telemetry - - - -### Debug / Development - - - -### Workspace Cleaning - - - -### Captcha - - - -