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:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user