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

[explorer] Remove targeted builds for explorer #4631

Merged
merged 7 commits into from
Sep 16, 2022

Conversation

Jordan-Mysten
Copy link
Contributor

@Jordan-Mysten Jordan-Mysten commented Sep 14, 2022

This removes the targeted builds for explorer, and instead infers the network information from the URL. The goal of this is to simplify the build and deploy process of the explorer.

As part of this change, the default network for local development has changed to localnet. In general, I think this is a good default, and can still be overridden in the UI easily. This can also be overridden via the VITE_NETWORK environment variable, and the rpcUrl query parameter. If you primarily develop against devnet, you should be able to just set the network once, and the localStorage preference should keep it set for you.

@Jordan-Mysten Jordan-Mysten marked this pull request as ready for review September 14, 2022 22:42
Copy link
Contributor

@randall-Mysten randall-Mysten left a comment

Choose a reason for hiding this comment

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

Added a suggested update to strings as I am not able to add a commit.

explorer/client/README.md Outdated Show resolved Hide resolved
```

Then, click the green button at the top and select the option 'Custom RPC URL'. Type the Custom RPC URL into the input box that emerges.
If you want to use the explorer with another network, you can select your preferred network in the header of the explorer.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't they need to choose Custom RPC URL and then enter the IP address to the server?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For custom fullnodes, yes.

@Jordan-Mysten Jordan-Mysten changed the title Remove targeted builds for explorer [explorer] Remove targeted builds for explorer Sep 15, 2022
Co-authored-by: Randall-Mysten <109545725+randall-Mysten@users.noreply.github.com>
Copy link
Contributor

@Jibz1 Jibz1 left a comment

Choose a reason for hiding this comment

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

Looks good

@Jordan-Mysten Jordan-Mysten merged commit 68140e8 into main Sep 16, 2022
@Jordan-Mysten Jordan-Mysten deleted the jordan--target-build branch September 16, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants