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
-10
View File
@@ -75,16 +75,6 @@ describe('IndexNow hook', () => {
expect(fetchSpy).not.toHaveBeenCalled()
})
test('a development host sends nothing, with no variable; IAPL_NOINDEX=0 says otherwise', async () => {
vi.stubEnv('IAPL_NOINDEX', '')
vi.stubEnv('NEXT_PUBLIC_SERVER_URL', 'https://acme.dev.netscale.pl')
await run({ _status: 'published' })
expect(fetchSpy).not.toHaveBeenCalled()
vi.stubEnv('IAPL_NOINDEX', '0')
await run({ _status: 'published' })
expect(fetchSpy).toHaveBeenCalledOnce()
})
test('staging copy (IAPL_NOINDEX) sends nothing even in production', async () => {
vi.stubEnv('IAPL_NOINDEX', '1')
await run({ _status: 'published' })