Skip to content

Commit 266fe5c

Browse files
author
Arnaud RITTI
committed
ci: test
1 parent f0d0d93 commit 266fe5c

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

.vercelignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/vendor
2+
/.idea
3+
/.code
4+
/.husky
5+
/.github

api/index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
/**
3+
* Here is the serverless function entry
4+
* for deployment with Vercel.
5+
*/
6+
require __DIR__ . '/../public/index.php';

vercel.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
22
"functions": {
3-
"public/index.php": {
3+
"api/index.php": {
44
"runtime": "vercel-php@0.7.1"
5+
},
6+
"public/**": {
7+
"runtime": "@vercel/static"
58
}
69
},
710
"routes": [
11+
{
12+
"src": "/(css|js)/(.*)",
13+
"dest": "public/$1/$2"
14+
},
815
{
916
"src": "/(.*)",
10-
"dest": "/public/index.php"
17+
"dest": "/api/index.php"
1118
}
1219
]
1320
}

0 commit comments

Comments
 (0)