initial
This commit is contained in:
parent
452c1f909c
commit
d21c5c79b1
3
api/index.php
Normal file
3
api/index.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
// api/index.php
|
||||
require __DIR__ . '/../public/index.php';
|
||||
@ -19,6 +19,8 @@ public function register(): void
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
if (config('app.env') === 'production') {
|
||||
\Illuminate\Support\Facades\URL::forceScheme('https');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
$middleware->trustProxies(at: '*');
|
||||
$middleware->web(append: [
|
||||
\App\Http\Middleware\HandleInertiaRequests::class,
|
||||
]);
|
||||
|
||||
31
vercel.json
Normal file
31
vercel.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 2,
|
||||
"framework": "laravel",
|
||||
"functions": {
|
||||
"api/*.php": {
|
||||
"runtime": "vercel-php@0.7.2"
|
||||
}
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"src": "/build/(.*)",
|
||||
"dest": "/public/build/$1"
|
||||
},
|
||||
{
|
||||
"src": "/(css|js|images|fonts)/(.*)",
|
||||
"dest": "/public/$1/$2"
|
||||
},
|
||||
{
|
||||
"src": "/favicon.ico",
|
||||
"dest": "/public/favicon.ico"
|
||||
},
|
||||
{
|
||||
"src": "/robots.txt",
|
||||
"dest": "/public/robots.txt"
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/api/index.php"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user