Skip to content

Commit

Permalink
chore: add option to disable the Flagsmith UI in the API containers. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Dec 6, 2023
1 parent 9502e55 commit c60d5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,10 @@

DISABLE_WEBHOOKS = env.bool("DISABLE_WEBHOOKS", False)

SERVE_FE_ASSETS = os.path.exists(BASE_DIR + "/app/templates/webpack/index.html")
DISABLE_FLAGSMITH_UI = env.bool("DISABLE_FLAGSMITH_UI", default=False)
SERVE_FE_ASSETS = not DISABLE_FLAGSMITH_UI and os.path.exists(
BASE_DIR + "/app/templates/webpack/index.html"
)

# Used to configure the number of application proxies that the API runs behind
NUM_PROXIES = env.int("NUM_PROXIES", 1)
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/deployment/hosting/locally-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ the below variables will be ignored.
- `FLAGSMITH_DOMAIN`: A custom domain for URLs pointing to your Flagsmith instance in email notifications. Note: if set,
the domain provided during [initial configuration](#environments-with-no-direct-console-access-eg-heroku-ecs) will be
ignored.
- `DISABLE_FLAGSMITH_UI`: Disable the Flagsmith UI which can be rendered by the API containers in a single container
environment. Use `True` to disable, defaults to `False`.

#### Security Environment Variables

Expand Down

3 comments on commit c60d5de

@vercel
Copy link

@vercel vercel bot commented on c60d5de Dec 6, 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:

docs – ./docs

docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io
docs.flagsmith.com

@vercel
Copy link

@vercel vercel bot commented on c60d5de Dec 6, 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 c60d5de Dec 6, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.