Skip to content

Commit

Permalink
feat: add custom env VERCEL_LARAVEL_DOCROOT to specify the docroot on…
Browse files Browse the repository at this point in the history
… the built-in php server
  • Loading branch information
Jeremy Alvarez committed Feb 2, 2024
1 parent eef3f2d commit 6d2d9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/launchers/builtin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let server: ChildProcess;
async function startServer(entrypoint: string): Promise<ChildProcess> {
// Resolve document root and router
const router = entrypoint;
const docroot = pathJoin(getUserDir(), process.env.VERCEL_LARAVEL_DOCROOT ?? 'api');
const docroot = pathJoin(getUserDir(), process.env.VERCEL_LARAVEL_DOCROOT ?? '');

console.log(`🐘 Spawning: PHP Built-In Server at ${docroot} (document root) and ${router} (router)`);

Expand Down

0 comments on commit 6d2d9b4

Please sign in to comment.