Skip to content

Commit

Permalink
[0.3.x] update LD_LIBRARY_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 24, 2024
1 parent f09c768 commit f960ecb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vercel-php",
"description": "Vercel PHP runtime",
"version": "0.3.4",
"version": "0.3.5",
"license": "MIT",
"main": "./dist/index.js",
"homepage": "https://github.com/juicyfx/vercel-php",
Expand Down
5 changes: 4 additions & 1 deletion src/launchers/builtin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ async function startServer(entrypoint: string): Promise<ChildProcess> {
// php spawn options
const options: SpawnOptions = {
stdio: ['pipe', 'pipe', 'pipe'],
env: process.env
env: {
...process.env,
LD_LIBRARY_PATH: `/var/task/lib:${process.env.LD_LIBRARY_PATH}`
}
};

// now vs now-dev
Expand Down

0 comments on commit f960ecb

Please sign in to comment.