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