From 6d2d9b4dd7b0126ac412c8cf182d7e7f5224ffba Mon Sep 17 00:00:00 2001 From: Jeremy Alvarez Date: Fri, 2 Feb 2024 13:40:12 +0100 Subject: [PATCH] feat: add custom env VERCEL_LARAVEL_DOCROOT to specify the docroot on the built-in php server --- src/launchers/builtin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launchers/builtin.ts b/src/launchers/builtin.ts index 8162ccff..507e89ee 100644 --- a/src/launchers/builtin.ts +++ b/src/launchers/builtin.ts @@ -16,7 +16,7 @@ let server: ChildProcess; async function startServer(entrypoint: string): Promise { // 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)`);