Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
chore: deploy to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
envil a.k.a pow committed Feb 21, 2024
1 parent 1725e46 commit b231d1f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/public/build
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

3 changes: 3 additions & 0 deletions api/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require __DIR__ . '/../public/index.php';
2 changes: 2 additions & 0 deletions app/Http/Middleware/TrustHosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class TrustHosts extends Middleware
{
protected $proxies = '*';

/**
* Get the host patterns that should be trusted.
*
Expand Down
18 changes: 18 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 2,
"framework": null,
"functions": {
"api/index.php": { "runtime": "[email protected]" }
},
"outputDirectory": "public",
"routes": [
{
"src": "/build/(.*)",
"dest": "/build/$1"
},
{
"src": "/(.*)",
"dest": "/api/index.php"
}
]
}

0 comments on commit b231d1f

Please sign in to comment.