From f877637e61c1379c952683fbc150994e026d2a43 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 3 Dec 2024 18:26:15 +0000 Subject: [PATCH] fix(endpoint-micropub): respect user configured endpoint --- packages/endpoint-micropub/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/endpoint-micropub/index.js b/packages/endpoint-micropub/index.js index dc4d97dc2..9523e0805 100644 --- a/packages/endpoint-micropub/index.js +++ b/packages/endpoint-micropub/index.js @@ -24,6 +24,9 @@ export default class MicropubEndpoint { Indiekit.addCollection("posts"); Indiekit.addEndpoint(this); - Indiekit.config.application.micropubEndpoint = this.mountPath; + // Only mount if micropub endpoint not already configured + if (!Indiekit.config.application.micropubEndpoint) { + Indiekit.config.application.micropubEndpoint = this.mountPath; + } } }