-
Notifications
You must be signed in to change notification settings - Fork 695
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
Conversation
brightiron
commented
Dec 22, 2023
- If no env var set for protocol metrics hide protocol metrics
- remove unused env vars
- update readme
- one click deploy buttons for convenience.
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="" |
There was a problem hiding this comment.
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="" |
There was a problem hiding this comment.
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?
@@ -41,4 +25,7 @@ VITE_AVALANCHE_NODE_URL="" | |||
VITE_AVALANCHE_TESTNET_NODE_URL="" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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