fix: Change to using host instead of fixed 127.0.0.1

This commit is contained in:
hiro 2024-01-22 12:17:12 +07:00 committed by hiro
parent b8bc0cd171
commit a8cf4192d2

View File

@ -127,7 +127,7 @@ const LocalServerScreen = () => {
</Button> </Button>
{serverEnabled && ( {serverEnabled && (
<Button block themes="secondaryBlue" asChild> <Button block themes="secondaryBlue" asChild>
<a href={`http://127.0.0.1:${port}`} target="_blank"> <a href={`http://${host}:${port}`} target="_blank">
API Reference <ExternalLinkIcon size={20} className="ml-2" /> API Reference <ExternalLinkIcon size={20} className="ml-2" />
</a> </a>
</Button> </Button>