Skip to content

Commit 87af526

Browse files
committed
add vite prefect to provider
1 parent da4cd97 commit 87af526

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Providers;
44

5+
use Illuminate\Support\Facades\Vite;
56
use Illuminate\Http\Resources\Json\JsonResource;
67
use Illuminate\Support\ServiceProvider;
78

@@ -21,5 +22,6 @@ public function register(): void
2122
public function boot(): void
2223
{
2324
JsonResource::withoutWrapping();
25+
Vite::prefetch(concurrency: 3);
2426
}
2527
}

0 commit comments

Comments
 (0)