Send noindex, nofollow unless APP_INDEXABLE=true
Staging was crawlable. Opt-in flag rather than APP_ENV, since staging runs with APP_ENV=production too. Set APP_INDEXABLE=true on the live site only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b2f53ea952
commit
fff84f9a43
4 files changed
+49
No files matched your search
@@ -41,6 +41,19 @@
|
||||
|
||||
'debug' => (bool) env('APP_DEBUG', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Search Engine Indexing
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Off by default, so every environment (local, staging, ...) sends
|
||||
| `X-Robots-Tag: noindex, nofollow` (App\Http\Middleware\PreventIndexing).
|
||||
| Set APP_INDEXABLE=true on the live site only.
|
||||
|
|
||||
*/
|
||||
|
||||
'indexable' => (bool) env('APP_INDEXABLE', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application URL
|
||||
|
||||
Reference in new issue
Block a user