Configuration Overview Table
How to Toggle Configurations
1. Toggling the “Try Public Repo” Sandbox Tab
Option A: In the User Interface (Recommended for Users)
- In the GoBetter app, navigate to Workspace Settings from the sidebar.
- Select the Features tab in the top navigation bar.
- Locate the Public Repository Explorer Tab toggle.
- Click the switch to toggle between Enabled and Hidden.
- Changes take effect immediately across the sidebar and roadmap view without requiring a page reload.
Option B: In the Environment File (Recommended for Deployments)
To globally lock the tab for all users (e.g. in enterprise environments):- Open or create
client/.env(or set environment variables in your deployment runner): - When set to
falseor0, the tab is permanently hidden and shows as Locked in .env in the Settings UI.
Option C: Programmatically via Browser Console
2. Client Environment Template (client/.env.example)
Create client/.env by copying client/.env.example:
Where to Get Each Frontend Value
Frontend variables are read by Vite at build time and included in the browser JavaScript bundle. They must contain configuration only and never passwords, API keys, database URLs, or tokens.
Update
client/.env before running Vite or building the Docker image:
client/.env before building so Vite embeds the intended API URL.
Client Configuration Architecture
The configuration logic is centralized inclient/src/config/clientConfig.ts:
isPublicReposTabEnabled(): EvaluatesVITE_ENABLE_PUBLIC_REPOSenvironment variable first, then checks thegobetter_feature_public_reposkey inlocalStorage.setPublicReposTabEnabled(enabled): Stores the user’s preference and broadcasts agobetter-config-changedwindow event.subscribeToConfigChange(callback): Subscribes components (Sidebar.tsx,App.tsx,RoadmapView.tsx) to configuration state changes reactively.