Payload CMS plugin which provides a visual live editor directly in the Admin UI. Works for collections and globals. Compatible with any kind of JS/TS based frontend technology.
MIT License
209
stars
10
forks
source link
fetchRelation is not respecting custom api routes #18
When having the
api
path on a different route (via payload.config.ts), the fetchRelation method (https://github.com/pemedia/payload-visual-editor/blob/main/src/utils/generateDocument.ts#L30) has a hardcoded path toapi
.In my application the path is rewritten to
_api
to avoid conflicts with NextJS, so the visual editor fails fetching requests.