Skip to content

Commit

Permalink
Merge branch 'master' into changeset-release/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 20, 2022
2 parents c6ea29c + 2f01f95 commit 5321dff
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 5321dff

Please sign in to comment.