Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fork: add custom env docroot for php built-in server #516

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

jeremy93-2008
Copy link

Hi,

A day ago, I attempted to deploy a Laravel 10.x application on Vercel using your runtime, and I encountered issues with the functionality of the api/ routes in Laravel. Despite PHP not being my primary language (yet!), I delved into the problem for about 2 hours. It turned out that there was an error related to routing and the root folder. The solution was to align the docroot of PHP in the built-in server with the location of api/index.php. This adjustment allowed my api/ routes to function correctly.

In my effort to contribute to this fantastic package, I've created a pull request that introduces the ability to choose the docroot directory through a previously defined environment variable. This modification proved immensely helpful for me. As a result, the latest versions of Laravel now deploy smoothly.

@f3l1x
Copy link
Collaborator

f3l1x commented Feb 15, 2024

Hi @jeremy93-2008. Thank you for your PR.

@f3l1x f3l1x enabled auto-merge (rebase) February 15, 2024 05:53
@f3l1x f3l1x merged commit 2d063d7 into vercel-community:master Feb 15, 2024
1 check passed
@jeremy93-2008 jeremy93-2008 deleted the fork/custom-env-DOCROOT branch April 7, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants