prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
2 changed files with 7 additions and 3 deletions
Showing only changes of commit f8f6d4b3d3 - Show all commits

View File

@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -17,8 +18,10 @@ class AppServiceProvider extends ServiceProvider
/**
* Bootstrap any application services.
*/
public function boot(): void
public function boot(UrlGenerator $url): void
{
//
if (env('APP_ENV') == 'production') {
$url->forceScheme('https');
}
}
}

View File

@ -3,7 +3,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build"
"build": "vite build",
"prod": "vite build"
},
"devDependencies": {
"@popperjs/core": "^2.11.6",