konfigurasi vercel

This commit is contained in:
zulfikar yuniar 2025-06-03 16:47:07 +07:00
parent eb9494f946
commit 2adf68f3d2
3 changed files with 34 additions and 0 deletions

1
frontendd/.vercelignore Normal file
View File

@ -0,0 +1 @@
/vendor

4
frontendd/api/index.php Normal file
View File

@ -0,0 +1,4 @@
<?php
// Forward Vercel requests to normal index.php
require __DIR__ . '/../public/index.php';

29
frontendd/vercel.json Normal file
View File

@ -0,0 +1,29 @@
{
"version": 2,
"framework": null,
"functions": {
"api/index.php": { "runtime": "vercel-php@0.3.1" }
},
"routes": [
{
"src": "/(.*)",
"dest": "/api/index.php"
}
],
"env": {
"APP_ENV": "production",
"APP_DEBUG": "true",
"APP_URL": "https://yourproductionurl.com",
"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"
}
}