Skip to content

Commit

Permalink
better upload link and hash
Browse files Browse the repository at this point in the history
Signed-off-by: Deggen <[email protected]>
  • Loading branch information
sirdeggen committed Feb 21, 2025
1 parent a570a5c commit 3ed1be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_API_URL=localhost:3030 # update this if you're running the api on some domain
VITE_API_URL=http://localhost:3030 # update this if you're running the api on some domain
3 changes: 2 additions & 1 deletion front/src/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function Upload() {
{response.txid && (
<div>
<h3>Upload successful</h3>
<p><a target='_BLANK' href={'https://' + (response.network !== 'main' ? 'test.' : '') + 'whatsonchain.com/tx/' + response.txid}>Inspect</a></p>
<p style={{ overflow: 'hidden' }}>{response?.txid}</p>
<p><a target='_BLANK' href={'https://' + (response.network !== 'main' ? 'test.' : '') + 'whatsonchain.com/tx/' + response.txid}>🔗 whats on chain</a></p>
</div>
)}
<p className='explainer'>Send file binary streams to the /upload endpoint.</p>
Expand Down

0 comments on commit 3ed1be3

Please sign in to comment.