Skip to content

Commit

Permalink
fix(endpoint-media): respect user configured endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 3, 2024
1 parent 6a1d969 commit eed9053
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/endpoint-media/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit eed9053

Please sign in to comment.