Skip to content

Commit

Permalink
[0.5.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 bcd53dd commit 7fd18d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.5.3",
"version": "0.5.4",
"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 7fd18d5

Please sign in to comment.