Skip to content

Commit

Permalink
Create a sample workflow to deploy this project to vercel (#88)
Browse files Browse the repository at this point in the history
* Create vercel.json

* Create index.php

* Create .vercelignore

* Create .gitkeep
  • Loading branch information
guibranco authored Aug 13, 2024
1 parent a961051 commit 8488b9b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
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";
1 change: 1 addition & 0 deletions dist/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

27 changes: 27 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"framework": null,
"functions": {
"api/index.php": { "runtime": "[email protected]" }
},
"routes": [{
"src": "/(.*)",
"dest": "/api/index.php"
}],
"env": {
"APP_ENV": "production",
"APP_DEBUG": "true",
"APP_URL": "https://laravel-guibranco.vercel.app",

"APP_CONFIG_CACHE": "/tmp/config.php",
"APP_EVENTS_CACHE": "/tmp/events.php",
"APP_PACKAGES_CACHE": "/tmp/packages.php",
"APP_ROUTES_CACHE": "/tmp/routes.php",
"APP_SERVICES_CACHE": "/tmp/services.php",
"VIEW_COMPILED_PATH": "/tmp",

"CACHE_DRIVER": "array",
"LOG_CHANNEL": "stderr",
"SESSION_DRIVER": "cookie"
}
}

0 comments on commit 8488b9b

Please sign in to comment.