test
This commit is contained in:
1 parent
de7a0a85f6
commit
33a918d02b
2 files changed
-9
No files matched your search
@@ -123,9 +123,4 @@ return [
|
|||||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'frontend' => [
|
|
||||||
'dev' => env('DEV', 0),
|
|
||||||
'dev_url' => env('FRONTEND_DEV_URL', 'http://localhost:5173'),
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
];
|
||||||
@@ -3,9 +3,5 @@
|
|||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/{any}', function () {
|
Route::get('/{any}', function () {
|
||||||
if (config('app.frontend.dev')) {
|
|
||||||
return redirect(config('app.frontend.dev_url'));
|
|
||||||
}
|
|
||||||
|
|
||||||
return file_get_contents(public_path('index.html'));
|
return file_get_contents(public_path('index.html'));
|
||||||
})->where('any', '.*');
|
})->where('any', '.*');
|
||||||
Reference in new issue
Block a user