fix: conversationMentions hardcoded localhost:8080 → INDIEKIT_URL
Build & Deploy / build-and-deploy (push) Successful in 2m24s
Build & Deploy / build-and-deploy (push) Successful in 2m24s
Port 8080 doesn't exist on the Gitea build runner. Uses INDIEKIT_URL (http://10.100.0.20:3000) with SITE_URL fallback, same pattern as the other NAT-hairpin fixes.
This commit is contained in:
@@ -3,7 +3,7 @@ import { cachedFetch } from "../lib/data-fetch.js";
|
||||
export default async function () {
|
||||
try {
|
||||
const data = await cachedFetch(
|
||||
"http://127.0.0.1:8080/conversations/api/mentions?per-page=10000",
|
||||
`${process.env.INDIEKIT_URL || process.env.SITE_URL || "http://127.0.0.1:3000"}/conversations/api/mentions?per-page=10000`,
|
||||
{ duration: "15m", type: "json" }
|
||||
);
|
||||
return data.children || [];
|
||||
|
||||
Reference in New Issue
Block a user