将php程序扔在主目录即可
{
"functions": {
"api/index.php": {
"runtime": "[email protected]"
}
},
"routes": [
{ "src": "/(.*)", "dest": "/api/index.php" }
]
}
对于的php本版为
[email protected]
- PHP 8.1.x[email protected]
- PHP 8.0.x[email protected]
- PHP 7.4.x
使用低于 "[email protected]" 版本可能会构建失败