Skip to main content
The client does not use the backend copy-env command. Copy client/.env.example to client/.env, then set the Vite variables required for your environment.

Configuration Overview Table


How to Toggle Configurations

1. Toggling the “Try Public Repo” Sandbox Tab

  1. In the GoBetter app, navigate to Workspace Settings from the sidebar.
  2. Select the Features tab in the top navigation bar.
  3. Locate the Public Repository Explorer Tab toggle.
  4. Click the switch to toggle between Enabled and Hidden.
    • Changes take effect immediately across the sidebar and roadmap view without requiring a page reload.
To globally lock the tab for all users (e.g. in enterprise environments):
  1. Open or create client/.env (or set environment variables in your deployment runner):
  2. When set to false or 0, 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:
The frontend service in Docker Compose is optional and currently commented out. If you enable it, provide client/.env before building so Vite embeds the intended API URL.

Client Configuration Architecture

The configuration logic is centralized in client/src/config/clientConfig.ts:
  • isPublicReposTabEnabled(): Evaluates VITE_ENABLE_PUBLIC_REPOS environment variable first, then checks the gobetter_feature_public_repos key in localStorage.
  • setPublicReposTabEnabled(enabled): Stores the user’s preference and broadcasts a gobetter-config-changed window event.
  • subscribeToConfigChange(callback): Subscribes components (Sidebar.tsx, App.tsx, RoadmapView.tsx) to configuration state changes reactively.