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:
elviraandClaude Opus 5.5 committed 2026-10-27 12:07:20 +02:00
1 parent b2f53ea952
commit fff84f9a43
4 files changed
+49

No files matched your search

+3
View File
@@ -23,6 +23,9 @@
// public traffic.
$middleware->trustProxies(at: '*');
// Global, so error pages and non-`web` routes are covered too.
$middleware->append(\App\Http\Middleware\PreventIndexing::class);
// Laravel's priority list would otherwise run `auth` before core's
// `locale` middleware, so the redirects below would build URLs before
// URL::defaults(['locale' => …]) is set, throwing a missing-parameter error.