Skip to content

Commit

Permalink
write serverless function to correct place (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris authored Apr 18, 2021
1 parent 2e52df2 commit 0db2cf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-terms-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Fix serverless function
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function () {

await esbuild.build({
entryPoints: ['.svelte/netlify/entry.js'],
outfile: join(functions, 'index.js'),
outfile: join(functions, 'render/index.js'),
bundle: true,
platform: 'node'
});
Expand Down

1 comment on commit 0db2cf7

@vercel
Copy link

@vercel vercel bot commented on 0db2cf7 Apr 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.