Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit b4539d8

Browse files
committed
use original netlify-lambda serve
1 parent 2ac4fa1 commit b4539d8

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = (api, projectOptions) => {
3434
}
3535
}
3636

37-
const forked = fork(path.join(__dirname, 'serve.js'), webpackConfig ? [webpackConfig] : null)
37+
fork(require.resolve('netlify-lambda'), ['serve', 'src/lambda', ...(webpackConfig ? ['-c', webpackConfig] : [])]);
3838
return serveFn(...args)
3939
}
4040
}

Diff for: serve.js

-17
This file was deleted.

0 commit comments

Comments
 (0)