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
-4
View File
@@ -877,10 +877,6 @@ describe('the token over time', () => {
// …and mail.relay.developmentHosts wins for the mail service
expect(at('https://acme.dev.netscale.pl', own, { developmentHosts: ['acme.*'] })).toEqual({ by: 'development-host', pattern: 'acme.*' })
expect(at('https://acme.dev.netscale.pl', undefined, { developmentHosts: [] })).toBeNull()
// (that a development host is also kept out of search engines is not the mail service's signal: only the variable is)
vi.stubEnv('NEXT_PUBLIC_SERVER_URL', 'https://acme.dev.netscale.pl')
expect(at('https://acme.dev.netscale.pl', undefined, { developmentHosts: [] })).toBeNull()
vi.stubEnv('NEXT_PUBLIC_SERVER_URL', '')
// either signal is enough; the host is named first
vi.stubEnv('IAPL_NOINDEX', '1')
expect(at('https://client.pl')).toEqual({ by: 'noindex' })