Skip to content

Commit

Permalink
Mention Editing Build-time Variables in deployment Guides
Browse files Browse the repository at this point in the history
Mention Editing Build-time Variables in deployment Guides
  • Loading branch information
jobenjada committed Sep 1, 2023
2 parents d21fd62 + 17406a0 commit 5db3066
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
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)

2 comments on commit 5db3066

@vercel
Copy link

@vercel vercel bot commented on 5db3066 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5db3066 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formbricks-com – ./apps/formbricks-com

formbricks-com-formbricks.vercel.app
www.formbricks.com
formbricks-com-git-main-formbricks.vercel.app
formbricks-com.vercel.app
formbricks.com

Please sign in to comment.