Revert "A development host is kept out of search engines without IAPL_NOINDEX (developmentNoindex, default on)"

This reverts commit bc3aac249f.
This commit is contained in:
Radosław Smoliński
2026-11-26 10:38:29 +01:00
parent 463b966365
commit 5df5358768
23 changed files with 24 additions and 215 deletions
-7
View File
@@ -5,7 +5,6 @@ import { describe, expect, test, vi } from 'vitest'
import type { I18nConfig } from '../src/modules/i18n/types.js'
import { pluginDevelopmentHosts } from '../src/modules/email/relay/options.js'
import { noindexDevelopmentHosts } from '../src/modules/shared/developmentHosts.js'
import { iapl } from '../src/plugin.js'
import { withTotpParts } from './helpers.js'
@@ -32,12 +31,6 @@ describe('iapl — config transform', () => {
expect(await hosts()).toEqual(['*.dev.netscale.pl'])
expect(await hosts(['*.preview.agency-example.com'])).toEqual(['*.preview.agency-example.com'])
expect(await hosts([])).toEqual([])
// the same options reach the helpers that have no config at hand (robots, metadata, IndexNow)
expect(noindexDevelopmentHosts()).toEqual([])
await iapl({ access: { authCollection: 'users' }, developmentNoindex: false, i18n, twoFactor: false })(base())
expect(noindexDevelopmentHosts()).toBe(false)
await iapl({ access: { authCollection: 'users' }, i18n, twoFactor: false })(base())
expect(noindexDevelopmentHosts()).toEqual(['*.dev.netscale.pl'])
})
test('adds globals, endpoint, localization and roles', async () => {