fix(seo): noindex staging builds by default

- add PUBLIC_ALLOW_INDEXING as an explicit production indexing opt-in
- emit robots meta noindex,nofollow unless indexing is enabled
- generate robots.txt from the same indexing flag
- document staging SEO behavior for migration preview hosts
This commit is contained in:
2026-07-13 12:48:14 -07:00
parent 9c391c8c05
commit 6648d1d7d5
5 changed files with 43 additions and 7 deletions
+7 -3
View File
@@ -38,19 +38,23 @@ cd www
npm install
```
Copy the example environment file when testing the like/view counter:
Copy the example environment file when testing the like/view counter or staging
SEO behavior:
```sh
cp .env.example .env
```
The default value is:
The default values are:
```txt
PUBLIC_AIA_API_BASE=https://api.azinstitute4autism.com
PUBLIC_ALLOW_INDEXING=false
```
The site still renders when that API is unavailable.
The site still renders when the AIA API is unavailable. Migration and staging
builds emit `noindex,nofollow` by default; set `PUBLIC_ALLOW_INDEXING=true`
only for production builds on the canonical domain.
## View And Build