Skip to content

Commit

Permalink
fix adapter-vercel (#4673)
Browse files Browse the repository at this point in the history
* fix adapter-vercel

* Delete silly-boxes-beam.md
  • Loading branch information
Rich-Harris authored Apr 20, 2022
1 parent 467cdb9 commit 2f01f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function v1(builder, external) {

const relativePath = posix.relative(tmp, builder.getServerDirectory());

builder.copy(files, tmp, {
builder.copy(`${files}/serverless.js`, `${tmp}/serverless.js`, {
replace: {
SERVER: `${relativePath}/index.js`,
MANIFEST: './manifest.js'
Expand All @@ -137,7 +137,7 @@ async function v1(builder, external) {
);

await esbuild.build({
entryPoints: [`${tmp}/entry.js`],
entryPoints: [`${tmp}/serverless.js`],
outfile: `${dirs.lambda}/index.js`,
target: 'node14',
bundle: true,
Expand Down

0 comments on commit 2f01f95

Please sign in to comment.