Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VTAdmin] Change vars from REACT_APP to VITE #404

Merged
merged 4 commits into from
Apr 10, 2023

Conversation

notfelineit
Copy link
Contributor

With vitessio/vitess#12831, we're migrating VTAdmin from create-react-app to vite. One of the changes is that all REACT_APP_* vars are changed to VITE_*

@frouioui
Copy link
Member

frouioui commented Apr 5, 2023

Went through the repository and it does not seem like we need to change anything, i'll let @GuptaManan100 confirm though.

Copy link
Collaborator

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

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

Changes look good to me!

Comment on lines 344 to 349
'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,
Copy link
Collaborator

@GuptaManan100 GuptaManan100 Apr 6, 2023

Choose a reason for hiding this comment

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

We should probably keep the old env variables for one release to ensure backward compatibility.
We can drop these after 2.10 release

@frouioui
Copy link
Member

frouioui commented Apr 6, 2023

Rebased on main (since #398 is merged) onto this Pull Request to unblock CI.

@frouioui frouioui force-pushed the frances/update-vtadmin-vite branch 3 times, most recently from 7030b42 to a3a84d4 Compare April 6, 2023 16:34
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui force-pushed the frances/update-vtadmin-vite branch from a3a84d4 to e888bcf Compare April 6, 2023 16:35
@notfelineit notfelineit merged commit ddec3bd into main Apr 10, 2023
@notfelineit notfelineit deleted the frances/update-vtadmin-vite branch April 10, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants