From eed9053b54ddf0cfcf4a4a5dbda66310be99dd0f Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 3 Dec 2024 18:26:02 +0000 Subject: [PATCH] fix(endpoint-media): respect user configured endpoint --- packages/endpoint-media/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/endpoint-media/index.js b/packages/endpoint-media/index.js index 374ad0bb8..f49e4aa71 100644 --- a/packages/endpoint-media/index.js +++ b/packages/endpoint-media/index.js @@ -33,6 +33,9 @@ export default class MediaEndpoint { Indiekit.addCollection("media"); Indiekit.addEndpoint(this); - Indiekit.config.application.mediaEndpoint = this.mountPath; + // Only mount if media endpoint not already configured + if (!Indiekit.config.application.mediaEndpoint) { + Indiekit.config.application.mediaEndpoint = this.mountPath; + } } }