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

Remove unused env vars. update readme. Deploy your own frontend. #3041

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

brightiron
Copy link
Contributor

  • If no env var set for protocol metrics hide protocol metrics
  • remove unused env vars
  • update readme
  • one click deploy buttons for convenience.

@brightiron brightiron requested a review from unbanksy December 22, 2023 16:05
VITE_GIVE_ENABLED="true"
# This should be toggled to "true" if you need to use the mock sOHM contract
# (which allows for on-demand rebasing)
VITE_MOCK_SOHM_ENABLED="false"

# Optional
# Google Analytics (https://analytics.google.com/)
VITE_GOOGLE_ANALYTICS_API_KEY=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need both GA?

@@ -25,14 +17,6 @@ VITE_FANTOM_TESTNET_NODE_URL=""
VITE_POLYGON_NODE_URL=""
VITE_POLYGON_TESTNET_NODE_URL=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need Polygon?

.env.example Show resolved Hide resolved
@@ -41,4 +25,7 @@ VITE_AVALANCHE_NODE_URL=""
VITE_AVALANCHE_TESTNET_NODE_URL=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question here. Why do we need this in code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can probably remove these and only support mainnet and arbitrum on the network selector.

@@ -202,6 +203,8 @@ function App() {
if (isSidebarExpanded) handleSidebarClose();
}, [location]);

const protocolMetricsEnabled = Boolean(Environment.getWundergraphNodeUrl());
const defaultRoute = protocolMetricsEnabled ? "/dashboard" : "/my-balances";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just make the default route always be /my-balances?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. just hadn't historically. so didn't wanna break functionality

@brightiron brightiron merged commit 1c14eb2 into develop Feb 13, 2024
6 of 7 checks passed
@brightiron brightiron deleted the OneClickDeploy branch February 13, 2024 17:55
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.

2 participants