Skip to content

Commit

Permalink
Change vars from REACT_APP to VITE"
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
notfelineit authored and frouioui committed Apr 6, 2023
1 parent b535f33 commit a3a84d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/controller/vitesscluster/reconcile_vtadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ func (r *ReconcileVitessCluster) createWebConfigSecret(ctx context.Context, vt *
// Variables to hold the key, value and secret name to use
configKey := vtadmin.WebConfigFileName
configVal := fmt.Sprintf(`window.env = {
'REACT_APP_VTADMIN_API_ADDRESS': "%s",
'REACT_APP_FETCH_CREDENTIALS': "omit",
'REACT_APP_ENABLE_EXPERIMENTAL_TABLET_DEBUG_VARS': false,
'REACT_APP_BUGSNAG_API_KEY': "",
'REACT_APP_DOCUMENT_TITLE': "",
'REACT_APP_READONLY_MODE': %s,
'VITE_VTADMIN_API_ADDRESS': "%s",
'VITE_FETCH_CREDENTIALS': "omit",
'VITE_ENABLE_EXPERIMENTAL_TABLET_DEBUG_VARS': false,
'VITE_BUGSNAG_API_KEY': "",
'VITE_DOCUMENT_TITLE': "",
'VITE_READONLY_MODE': %s,
};`, apiAddress, convertReadOnlyFieldToString(vt.Spec.VtAdmin.ReadOnly))
secretName := vtadmin.WebConfigSecretName(vt.Name, cell.Name)

Expand Down

0 comments on commit a3a84d4

Please sign in to comment.