chore: checkpoint before block builder refactor
This commit is contained in:
23
config/preregister.php
Normal file
23
config/preregister.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$env = env('APP_ENV', 'production');
|
||||
$defaultPerMinute = in_array($env, ['local', 'testing'], true) ? 1000 : 60;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Public routes rate limit
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Max requests per minute per IP for the public landing page and subscribe
|
||||
| endpoint. Local and testing use a high default so refresh-heavy dev work
|
||||
| does not hit 429. Override with PUBLIC_REQUESTS_PER_MINUTE in .env.
|
||||
|
|
||||
*/
|
||||
|
||||
'public_requests_per_minute' => (int) env('PUBLIC_REQUESTS_PER_MINUTE', (string) $defaultPerMinute),
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user