diff --git a/packages/internal/docs/docs/shared/partials/env-vars/_webapp.mdx b/packages/internal/docs/docs/shared/partials/env-vars/_webapp.mdx index deb39c2cc..8678c19fd 100644 --- a/packages/internal/docs/docs/shared/partials/env-vars/_webapp.mdx +++ b/packages/internal/docs/docs/shared/partials/env-vars/_webapp.mdx @@ -5,7 +5,6 @@ | VITE_BASE_API_URL | Path to access backend API | `/api` | | VITE_WEB_APP_URL | Absolute URL to application | `https://app.demo.saas.apptoku.com` | | VITE_SUBSCRIPTIONS_URL | Websockets subscription URL | `wss://app.demo.saas.apptoku.com/ws` | -| VITE_EMAIL_ASSETS_URL | Absolute URL to email assets. By default it's `${VITE_WEB_APP_URL}/email-assets` | `https://app.demo.saas.apptoku.com/email-assets` | import OptionalVars from './_webapp_optional.mdx'; diff --git a/packages/internal/docs/docs/shared/partials/env-vars/_workers.mdx b/packages/internal/docs/docs/shared/partials/env-vars/_workers.mdx index 099a95af4..66c59b9d8 100644 --- a/packages/internal/docs/docs/shared/partials/env-vars/_workers.mdx +++ b/packages/internal/docs/docs/shared/partials/env-vars/_workers.mdx @@ -1,11 +1,12 @@ **Required** variables: -| Name | Description | Example | -|-------------|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------| -| FROM_EMAIL | Email used in `From` email field | `admin@exmaple.com` | -| HASHID_SALT | [docs](https://github.com/nshafer/django-hashid-field#hashid_field_salt) | `t5$^r\*xsMRXn1xjzhRSl8I5Hb3BUW$4U` | -| JWT_SECRET | Secret used to decode JWT used in subscriptions. The value needs to be the same as `DJANGO_SECRET_KEY` backend environment variable | | -| WEB_APP_URL | | `https://app.demo.saas.apptoku.com` | +| Name | Description | Example | +|------------------|-------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------| +| FROM_EMAIL | Email used in `From` email field | `admin@exmaple.com` | +| HASHID_SALT | [docs](https://github.com/nshafer/django-hashid-field#hashid_field_salt) | `t5$^r\*xsMRXn1xjzhRSl8I5Hb3BUW$4U` | +| JWT_SECRET | Secret used to decode JWT used in subscriptions. The value needs to be the same as `DJANGO_SECRET_KEY` backend environment variable | | +| WEB_APP_URL | | `https://app.demo.saas.apptoku.com` | +| EMAIL_ASSETS_URL | Absolute URL to email assets. By default it's `${WEB_APP_URL}/email-assets` | `https://app.demo.saas.apptoku.com/email-assets` | import OptionalVars from './_workers_optional.mdx'; diff --git a/packages/workers/workers.conf.local.yml b/packages/workers/workers.conf.local.yml index f732c3204..01b37a541 100644 --- a/packages/workers/workers.conf.local.yml +++ b/packages/workers/workers.conf.local.yml @@ -16,6 +16,8 @@ SendEmail: AWS_ENDPOINT_URL: "http://localstack:4566" FROM_EMAIL: "from@example.com" WEB_APP_URL: "http://localhost:3000" + VITE_EMAIL_ASSETS_URL: "http://localhost:3000/email-assets" + VITE_WEB_APP_URL: "http://localhost:3000" SynchronizeContentfulContent: environment: diff --git a/packages/workers/workers.conf.yml b/packages/workers/workers.conf.yml index ebf1875bd..8c2b11284 100644 --- a/packages/workers/workers.conf.yml +++ b/packages/workers/workers.conf.yml @@ -70,6 +70,8 @@ SendEmail: environment: FROM_EMAIL: ${ssm:/${self:custom.ssmService}/FROM_EMAIL} WEB_APP_URL: ${ssm:/${self:custom.ssmService}/WEB_APP_URL} + VITE_WEB_APP_URL: ${ssm:/${self:custom.ssmService}/WEB_APP_URL} + VITE_EMAIL_ASSETS_URL: ${ssm:/${self:custom.ssmService}/EMAIL_ASSETS_URL} SynchronizeContentfulContent: environment: