Skip to content

Commit f960ecb

Browse files
committed
[0.3.x] update LD_LIBRARY_PATH
1 parent f09c768 commit f960ecb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vercel-php",
33
"description": "Vercel PHP runtime",
4-
"version": "0.3.4",
4+
"version": "0.3.5",
55
"license": "MIT",
66
"main": "./dist/index.js",
77
"homepage": "https://github.com/juicyfx/vercel-php",

src/launchers/builtin.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ async function startServer(entrypoint: string): Promise<ChildProcess> {
2222
// php spawn options
2323
const options: SpawnOptions = {
2424
stdio: ['pipe', 'pipe', 'pipe'],
25-
env: process.env
25+
env: {
26+
...process.env,
27+
LD_LIBRARY_PATH: `/var/task/lib:${process.env.LD_LIBRARY_PATH}`
28+
}
2629
};
2730

2831
// now vs now-dev

0 commit comments

Comments
 (0)