Skip to content

Commit

Permalink
📝 Add doc about the new Tolgee env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 27, 2023
1 parent d8026df commit f85b49d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 13 additions & 0 deletions apps/docs/docs/self-hosting/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ Used to search for images. You can create a Giphy app [here](https://unsplash.co
| NEXT_PUBLIC_UNSPLASH_APP_NAME | | Unsplash App name |
| NEXT_PUBLIC_UNSPLASH_ACCESS_KEY | | Unsplash API key |

## Tolgee (i18n contribution dev tool)

:::note
If you'd like to join contribute to Typebot's translation join the [Discord server](https://discord.gg/FYjghmSKRS) and ask for an access to Tolgee in the [#contributors channel](https://discord.com/channels/1155799591220953138/1155883114455900190).
:::

Set up these environment variables to enable [Tolgee dev tool](https://tolgee.io/features/dev-tools).

| Parameter | Default | Description |
| -------------------------- | -------------------------------------- | ----------------------- |
| NEXT_PUBLIC_TOLGEE_API_KEY | | Your Tolgee API key |
| NEXT_PUBLIC_TOLGEE_API_URL | https://tolgee.server.baptistearno.com | The Tolgee API base URL |

## WhatsApp (Preview)

In order to be able to test your bot on WhatsApp from the Preview drawer, you need to set up a WhatsApp business app.
Expand Down
6 changes: 5 additions & 1 deletion packages/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ const posthogEnv = {
const tolgeeEnv = {
client: {
NEXT_PUBLIC_TOLGEE_API_KEY: z.string().min(1).optional(),
NEXT_PUBLIC_TOLGEE_API_URL: z.string().url().optional(),
NEXT_PUBLIC_TOLGEE_API_URL: z
.string()
.url()
.optional()
.default('https://tolgee.server.baptistearno.com"'),
},
runtimeEnv: {
NEXT_PUBLIC_TOLGEE_API_KEY: getRuntimeVariable(
Expand Down

0 comments on commit f85b49d

Please sign in to comment.