From cdc437ea8c66bfeed25f52cfafd8228f0037e9ef Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Wed, 11 Mar 2026 20:00:12 +0100 Subject: [PATCH] fix: remove webmentions-proxy, fix sender timing, explicit mountPath - Remove @rmdes/indiekit-endpoint-webmentions-proxy (redundant with webmention-io which already provides a public JSON API from MongoDB) - Remove proxy-related variables (webmentionsProxyMountPath, cacheTtl) - Add explicit mountPath to webmention-io config to avoid future surprises - Increase WEBMENTION_SENDER_POLL_INTERVAL to 600s so deploys complete before the poller fires, preventing silent data loss where posts with no stored content get marked webmention-sent before the page is live Co-Authored-By: Claude Sonnet 4.6 --- indiekit.config.mjs | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/indiekit.config.mjs b/indiekit.config.mjs index 69c8b7f9..22a8dfd1 100644 --- a/indiekit.config.mjs +++ b/indiekit.config.mjs @@ -125,15 +125,8 @@ const webmentionSenderTimeout = Number.isFinite(webmentionSenderTimeoutRaw) : 10000; const webmentionSenderUserAgent = process.env.WEBMENTION_SENDER_USER_AGENT || `${siteName} Webmention Sender`; -const webmentionsProxyMountPath = - process.env.WEBMENTIONS_PROXY_MOUNT_PATH || "/webmentions-api"; -const webmentionsProxyCacheTtlRaw = Number.parseInt( - process.env.WEBMENTIONS_PROXY_CACHE_TTL || "60", - 10, -); -const webmentionsProxyCacheTtl = Number.isFinite(webmentionsProxyCacheTtlRaw) - ? webmentionsProxyCacheTtlRaw - : 60; +const webmentionIoMountPath = + process.env.WEBMENTION_IO_MOUNT_PATH || "/webmentions"; const commentsMountPath = process.env.COMMENTS_MOUNT_PATH || "/comments"; const commentsRateLimitPerHourRaw = Number.parseInt( process.env.COMMENTS_RATE_LIMIT_PER_HOUR || "5", @@ -301,7 +294,6 @@ export default { "@rmdes/indiekit-preset-eleventy", "@rmdes/indiekit-endpoint-github", "@rmdes/indiekit-endpoint-webmention-io", - "@rmdes/indiekit-endpoint-webmentions-proxy", "@rmdes/indiekit-endpoint-webmention-sender", "@rmdes/indiekit-endpoint-homepage", "@rmdes/indiekit-endpoint-conversations", @@ -350,15 +342,10 @@ export default { username: githubUsername, }, "@rmdes/indiekit-endpoint-webmention-io": { + mountPath: webmentionIoMountPath, token: process.env.WEBMENTION_IO_TOKEN, domain: webmentionDomain, }, - "@rmdes/indiekit-endpoint-webmentions-proxy": { - mountPath: webmentionsProxyMountPath, - token: process.env.WEBMENTION_IO_TOKEN, - domain: webmentionDomain, - cacheTtl: webmentionsProxyCacheTtl, - }, "@rmdes/indiekit-endpoint-webmention-sender": { mountPath: webmentionSenderMountPath, timeout: webmentionSenderTimeout,