Skip to content

Commit

Permalink
Friendlier links
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Grove authored and Sean Grove committed Jul 31, 2021
1 parent 67b9348 commit 59eacdc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2>Setup:</h2>
<a href="https://authlify-dev.netlify.app/" target="_blank">Authlify</a> for
<code class="hostname">localhost</code>
</li>
<li>Trigger a new deploy (with the cache cleared)</li>
<li><a id="deployLink" href="https://app.netlify.com/" target="_blank">Trigger a new deploy</a> (with the cache cleared) so the new env var takes effect</li>
</ol>

<h2>Usage</h2>
Expand Down Expand Up @@ -49,4 +49,9 @@ <h2>Usage</h2>
for (var i = 0; i < hostnameElements.length; i++) {
hostnameElements[i].innerHTML = getHostname();
}

const deployUrl = `https://app.netlify.com/sites/${getHostname()}/deploys?filter=main`

document.getElementById("deployLink").href = deployUrl;

</script>

0 comments on commit 59eacdc

Please sign in to comment.