Small fixes: optional R2_PUBLIC_URL, seo.uploadsCollection, staff features without roles
- ipalEnvRules({ storage: true }): R2_PUBLIC_URL optional (media served by
the app); storage: { requirePublicUrl: true } requires it again.
- seo.uploadsCollection: upload collection of the meta image (default media).
- userMeetsRole(req, minimum): the plugin's admin/editor features (Site
Integrations, settings globals, test e-mail, stats, consent records, form
submissions) stay reachable when `access` is omitted — without a roles
field every logged-in account passes, as in Payload's default.
- IndexNow skip for seed writes is covered by test/seed.test.ts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
cff76c2a69
commit
4911da7112
@@ -6,7 +6,7 @@ import type { SeoOption } from './types.js'
|
||||
|
||||
type BuildSeoPluginArgs = {
|
||||
seo: SeoOption
|
||||
/** Upload collection slug for the meta image (typically 'media'). */
|
||||
/** Upload collection slug for the meta image. Default `seo.uploadsCollection`, then 'media'. */
|
||||
uploadsCollection?: string
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ function afterDescription(fields: Field[], extra: Field | null): Field[] {
|
||||
* slug) already sit in the collection, leaving an empty SEO tab. Instead the
|
||||
* SEO UI fields are injected into a controlled tab by injectSeoTabs.
|
||||
*/
|
||||
export function buildSeoPlugin({ seo, uploadsCollection = 'media' }: BuildSeoPluginArgs): Plugin {
|
||||
export function buildSeoPlugin({ seo, uploadsCollection = seo.uploadsCollection ?? 'media' }: BuildSeoPluginArgs): Plugin {
|
||||
return seoPlugin({
|
||||
collections: seo.collections,
|
||||
fields: ({ defaultFields }) => [
|
||||
|
||||
Reference in New Issue
Block a user