Opt-outs for the secure defaults; isPathVisibleIn in construction/logic
- setUnknownIpFactor (0 = old free pass), UNKNOWN_IP_FACTOR exported
- createContentHelpers({ settingsDepth }) and markdown/mcp isPathVisible overrides
- <RenderRichText safeLinks={false}>
- resolveRedirect({ draft: true }) for preview
- isPathVisibleIn(mode, path), pathOf, PathVisibility exported; page route uses it
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4585e0fc69
commit
0fd57c1d6a
@@ -82,3 +82,11 @@ describe('Site Settings depth', () => {
|
||||
expect((route?.doc as { hero: { alt?: string } }).hero).toMatchObject({ alt: 'hero' })
|
||||
})
|
||||
})
|
||||
|
||||
describe('settingsDepth option', () => {
|
||||
test('a project that needs deeper settings can raise the depth', async () => {
|
||||
const { getSettings } = createContentHelpers({ config: configPromise, settingsDepth: 2 })
|
||||
const settings = (await getSettings('pl')) as { featured: { hero: { alt?: string } } }
|
||||
expect(settings.featured.hero).toMatchObject({ alt: 'hero' })
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user