-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
hi, i'm a total beginner and i want to deploy my laravel app on vercel. i was planning to connect it to Oracle ATP to use it as the database. but i'm totally stuck on the vercel. when i open the website, it downloaded the index.php instead of load the app.
this is how my project looks like
project
├── .vercel
│ ├── ...
├── .vercelignore
├── api
│ └── index.php
...
├── public
│ ├── .htaccess
│ ├── favicon.ico
│ ├── index.php
│ └── robots.txt
...
├── vercel.json
└── vite.config.js
i already included functions and routes on my vercel.json
like this:
"functions": {
"api/*.php": {
"runtime": "[email protected]"
}
},
"routes": [
{
"src": "/(.*)",
"dest": "/api/index.php"
}
],
and i point the /api/index.php
to my original index.php like this:
<?php
// Forward Vercel requests to normal index.php
require __DIR__ . '/../public/index.php';
but it just downloaded the /api/index.php
instead. do anyone has any ideas what happened? and are they more informations that i could give to help?