From 76bd1536bff3d937252acb32911ed04fb1b110ef Mon Sep 17 00:00:00 2001 From: Twyco Date: Fri, 11 Sep 2026 00:45:06 +0200 Subject: [PATCH] fix --- AGENTS.md | 4 ++-- app/Providers/AppServiceProvider.php | 5 +++++ bootstrap/app.php | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index ef3a421..c258e62 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,7 +34,7 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac ## Frontend Bundling -- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `npm run build`, `npm run dev`, or `composer run dev`. Ask them. +- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `pnpm run build`, `pnpm run dev`, or `composer run dev`. Ask them. ## Documentation Files @@ -166,7 +166,7 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac ## Vite Error -- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`. +- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `pnpm run build` or ask the user to run `pnpm run dev` or `composer run dev`. === wayfinder/core rules === diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index f1525e9..60cdcbc 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -5,6 +5,7 @@ namespace App\Providers; use Carbon\CarbonImmutable; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\URL; use Illuminate\Support\ServiceProvider; use Illuminate\Validation\Rules\Password; @@ -24,6 +25,10 @@ class AppServiceProvider extends ServiceProvider public function boot(): void { $this->configureDefaults(); + + if ($this->app->environment() !== 'local') { + URL::forceScheme('https'); + } } /** diff --git a/bootstrap/app.php b/bootstrap/app.php index ba5cf4c..07e1aae 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -15,6 +15,7 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { + $middleware->trustProxies(at: '*'); $middleware->encryptCookies(except: ['appearance', 'sidebar_state']); $middleware->web(append: [