diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7a5fd7b..9b68f55 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -25,6 +25,7 @@
—
+
{{ end }}
{{ if not .Params.hideReply }}
diff --git a/static/upvote.js b/static/upvote.js
index 5abf255..131da67 100644
--- a/static/upvote.js
+++ b/static/upvote.js
@@ -1,7 +1,7 @@
(async function () {
// Define the slug
const slug = location.pathname.replace(/^\/|\/$/g, "").replaceAll("/", "-");
- const API = "http://localhost:3000";
+ const API = window.UPVOTE_API;
const btn = document.getElementById("upvote-btn");
const count = document.getElementById("upvote-count");