#Override Media route

1 messages · Page 1 of 1 (latest)

vagrant bridge
#

I have a multi tenanted solution right now Payload will serve my media from /api/${collectionSlug}/file/{$doc.fileName}

This is not good for me. I need

/api/${collectionSlug}/{$tenantId}/${fileName}

How can I change the existing default route to point to my new staticHandler.

NOTE the staticHandler is working and all wired up, it is just being called by the wrong route.

boreal rivetBOT
cold pier
#

We can define data.prefix as property in given collection that leads to override base path ofr media collection items.