|
| 1 | +You are working on my existing Next.js website for proxytechsupport.com. |
| 2 | + |
| 3 | +Task: |
| 4 | +Implement IndexNow support as a pure addition only. |
| 5 | + |
| 6 | +Very important rules: |
| 7 | +- Do NOT refactor existing SEO code. |
| 8 | +- Do NOT change existing sitemap logic unless absolutely required. |
| 9 | +- Do NOT change robots.txt unless only adding a missing sitemap line. |
| 10 | +- Do NOT change existing metadata, canonical URLs, redirects, schema, blog routes, service pages, or static export behavior. |
| 11 | +- Do NOT break GitHub Pages / Cloudflare deployment. |
| 12 | +- This must be additive and safe. |
| 13 | + |
| 14 | +My IndexNow key is: |
| 15 | +49dca91567b14de2bde9ba54739351bd |
| 16 | + |
| 17 | +Required implementation: |
| 18 | + |
| 19 | +1. Add the IndexNow key file in the public root: |
| 20 | +public/49dca91567b14de2bde9ba54739351bd.txt |
| 21 | + |
| 22 | +The file content must be exactly: |
| 23 | +49dca91567b14de2bde9ba54739351bd |
| 24 | + |
| 25 | +After deployment, this URL must work: |
| 26 | +https://proxytechsupport.com/49dca91567b14de2bde9ba54739351bd.txt |
| 27 | + |
| 28 | +2. Create a safe IndexNow helper file, for example: |
| 29 | +scripts/submit-indexnow.mjs |
| 30 | + |
| 31 | +It should: |
| 32 | +- Use Node.js only. |
| 33 | +- Not require new packages unless already available. |
| 34 | +- Read URLs from the existing sitemap if possible. |
| 35 | +- Submit URLs to: |
| 36 | +https://api.indexnow.org/indexnow |
| 37 | +- Use POST JSON body: |
| 38 | +{ |
| 39 | + "host": "proxytechsupport.com", |
| 40 | + "key": "49dca91567b14de2bde9ba54739351bd", |
| 41 | + "keyLocation": "https://proxytechsupport.com/49dca91567b14de2bde9ba54739351bd.txt", |
| 42 | + "urlList": [...] |
| 43 | +} |
| 44 | + |
| 45 | +3. The script must be defensive: |
| 46 | +- If sitemap is missing, do not fail the build. |
| 47 | +- If IndexNow API fails, log warning only. |
| 48 | +- Never block production deployment. |
| 49 | +- Limit URL submissions if needed to avoid huge payload. |
| 50 | +- Only submit canonical https://proxytechsupport.com URLs. |
| 51 | +- Do not submit localhost, staging, duplicate URLs, or invalid URLs. |
| 52 | + |
| 53 | +4. Add package.json script only if safe: |
| 54 | +"indexnow": "node scripts/submit-indexnow.mjs" |
| 55 | + |
| 56 | +Do not modify existing build/start/export scripts unless needed. |
| 57 | +Do not run IndexNow automatically inside build unless I explicitly ask later. |
| 58 | + |
| 59 | +5. Add a short comment in the script explaining: |
| 60 | +IndexNow helps faster discovery of new/updated URLs but does not guarantee ranking. |
| 61 | + |
| 62 | +6. After implementation, show me: |
| 63 | +- Files created |
| 64 | +- Exact code added |
| 65 | +- How to run manually |
| 66 | +- How to verify key file URL |
| 67 | +- Confirmation that no existing SEO behavior was changed |
| 68 | + |
| 69 | +Before editing, inspect the project structure first. |
| 70 | +Then implement only the minimum safe addition. |
0 commit comments