From de7a0a85f61cc384ab25685b15f8764299e16be8 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 31 Jan 2026 15:25:16 +0100 Subject: [PATCH] test --- config/app.php | 5 +++++ routes/web.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/config/app.php b/config/app.php index 423eed5..2551c61 100644 --- a/config/app.php +++ b/config/app.php @@ -123,4 +123,9 @@ return [ 'store' => env('APP_MAINTENANCE_STORE', 'database'), ], + 'frontend' => [ + 'dev' => env('DEV', 0), + 'dev_url' => env('FRONTEND_DEV_URL', 'http://localhost:5173'), + ], + ]; diff --git a/routes/web.php b/routes/web.php index 856b450..2a35a75 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,5 +3,9 @@ use Illuminate\Support\Facades\Route; Route::get('/{any}', function () { + if (config('app.frontend.dev')) { + return redirect(config('app.frontend.dev_url')); + } + return file_get_contents(public_path('index.html')); })->where('any', '.*');