Skip to content

Commit f877637

Browse files
fix(endpoint-micropub): respect user configured endpoint
1 parent eed9053 commit f877637

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/endpoint-micropub/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export default class MicropubEndpoint {
2424
Indiekit.addCollection("posts");
2525
Indiekit.addEndpoint(this);
2626

27-
Indiekit.config.application.micropubEndpoint = this.mountPath;
27+
// Only mount if micropub endpoint not already configured
28+
if (!Indiekit.config.application.micropubEndpoint) {
29+
Indiekit.config.application.micropubEndpoint = this.mountPath;
30+
}
2831
}
2932
}

0 commit comments

Comments
 (0)