Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention Editing Build-time Variables in deployment Guides #756

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/formbricks-com/app/docs/self-hosting/docker/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,12 @@ formbricks-quickstart-formbricks-1 | Listening on port 3000 url: http://<random

You can close the logs again with `CTRL + C`.

<Note>
## Customizing the Build Time variables

To edit any of the variables that start with `NEXT_PUBLIC_`, you need to rebuild the Formbricks Docker from source! It is just one
more added step and is not as much of a hassle as you think! Please check the [Building from Source](/docs/self-hosting/from-source) section!

</Note>

Still facing issues? [Join our Discord!](https://formbricks.com/discord) and we'd be glad to assist you!
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Ensure `docker` & `docker compose` are installed on your server/system. Both are
2. **Modify the `.env.docker` file as required by your setup.** <br/> This file comes with a basic setup and Formbricks works without making any changes to the file. To enable email sending functionality you need to configure the SMTP settings. If you configured your email credentials, you can also comment the following lines to enable email verification (`# NEXT_PUBLIC_EMAIL_VERIFICATION_DISABLED=1`) and password reset (`# NEXT_PUBLIC_PASSWORD_RESET_DISABLED=1`)

<Note>
## Editing a NEXT_PUBLIC_* variable?
Note: All environment variables starting with `NEXT_PUBLIC_` are used at build time. When you change
environment variables later, you need to rebuild the image with `docker compose build` for the changes
to take effect.
Expand Down
10 changes: 9 additions & 1 deletion apps/formbricks-com/app/docs/self-hosting/production/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ cd formbricks && docker compose logs -f

You can close the logs again with `CTRL + C`.

<Note>
## Customizing the Build Time variables

To edit any of the variables that start with `NEXT_PUBLIC_`, you need to rebuild the Formbricks Docker from source! It is just one
more added step and is not as much of a hassle as you think! Please check the [Building from Source](/docs/self-hosting/from-source) section!

</Note>

## Troubleshooting

If you encounter any issues, consider the following steps:
Expand All @@ -180,4 +188,4 @@ If you encounter any issues, consider the following steps:

- **Check Formbricks Logs**: Run `cd formbricks && docker compose logs` to check the logs of the Formbricks stack.

- **Still can’t figure it out?**: [Join our Discord!](https://formbricks.com/discord)
**Still can’t figure it out?**: [Join our Discord!](https://formbricks.com/discord)
Loading