payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.76k stars 1.72k forks source link

fix: uses config to determine admin route in payload app #9313

Closed JarrodMFlesch closed 3 days ago

JarrodMFlesch commented 3 days ago

What?

admin path is hardcoded in generateImportMap

Why?

Negligence

How?

Threads config into generateImportMap function and uses config.routes.admin in place of /admin instances.

Fixes https://github.com/payloadcms/payload/issues/7803

JarrodMFlesch commented 3 days ago

Closing in favor of https://github.com/payloadcms/payload/pull/8085