feat(deploy): indexability guard and production SEO launch suite (MITHOME-127)
The staging noindex (MITHOME-116) hinges on a build variable; leaking it into production would silently drop the site from Google. deploy.sh now refuses to build production when NEXT_PUBLIC_DEPLOY_ENV=staging is set, and after every deploy runs scripts/check-indexability.sh, expecting an indexable production and a blocked staging (node tests cover both ways, stray noindex and unreachable endpoints; added to pre-deploy tests). A separate Playwright project, production-seo (npm run test:seo:production), checks robots.txt, that all 12 sitemap URLs are final/indexable with self canonicals and sitemap hreflangs, SSR content and links, the / -> /hu redirect and real 404s; host redirects are gated until the production domain is live. Verified on a production-mode build of a staging DB copy (5 passed) and failing as expected against staging. eslint now ignores generated test output (playwright-report, test-results, coverage), which broke the pre-deploy lint after local e2e runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
104756db7f
commit
dc7a777d9f
+2
-1
@@ -14,7 +14,8 @@
|
||||
"test:browser": "jest --config jest.config.js src/__tests__/browser-integration.test.ts",
|
||||
"test:integration": "INTEGRATION_TESTS=1 jest --config jest.config.integration.js src/__tests__/integration.test.ts",
|
||||
"test:e2e": "E2E_TESTS=1 jest --config jest.config.integration.js src/__tests__/e2e-docker.test.ts",
|
||||
"test:smoke:staging": "playwright test --config=playwright.config.ts",
|
||||
"test:smoke:staging": "playwright test --config=playwright.config.ts --project=staging",
|
||||
"test:seo:production": "playwright test --config=playwright.config.ts --project=production-seo",
|
||||
"test:docker": "npm run test:integration && npm run test:e2e",
|
||||
"test:all": "npm run test:unit && npm run test:browser && npm run test:docker",
|
||||
"test:report": "npm test -- --json --outputFile=test-results.json --silent && node ../scripts/sync-test-management.js",
|
||||
|
||||
Reference in New Issue
Block a user