Disable self-hosted Studio features via server environment variable #41500
Unanswered
mauzybwy
asked this question in
Feature Requests
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, to disable features in Studio, one must set the env var
NEXT_PUBLIC_DISABLED_FEATURES. This variable is only used in the Next.js client, and overwrites theprofilefetched from theapi. A la apps/studio/data/profile/profile-query.ts:The annoying side-effect of this is that the only way to change the
disabled_featureslist when self-hosting is by modifying the Studio Dockerfile to add something like this:As a potential solution to a simpler runtime configuration when self-hosting, @ivasilov suggested in this Discord thread that instead of overwriting the
profileobject on the client, it would be feasible to instead just return a profile object with thedisabled_featuresfield populated from theapiby adding something like this to apps/studio/pages/api/platform/profile/index.ts:All reactions