From 273dd7006ff1454f423fbce567f5c5060fe5668e Mon Sep 17 00:00:00 2001 From: Garry Polley Date: Thu, 15 Oct 2020 19:44:08 -0500 Subject: [PATCH 1/2] Update to prevent #55 from occurring again This change in the readme is to help future developers not have binary issues across lambda functions created by the next build command. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3352e99..e4cb354 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ It's super simple. Just create a `next.config.js` file and write the following: module.exports = { // Target must be serverless - target: "serverless", + target: "experimental-serverless-trace", }; ``` From ee91c9e7cbdbc71f564d08ba34340fe6b289ad2f Mon Sep 17 00:00:00 2001 From: Garry Polley Date: Sat, 17 Oct 2020 12:16:06 -0500 Subject: [PATCH 2/2] Include default option and a binary option --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index e4cb354..c5dcb8c 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,18 @@ It's super simple. Just create a `next.config.js` file and write the following: module.exports = { // Target must be serverless + target: "serverless", +}; +``` + +If binaries are needed in the deployment the following configuration is needed ([Prisma](https://github.com/prisma/prisma) is an example): + +```js +// next.config.js + +module.exports = { + // Target must be experimental-serverless-trace + // Your build time will be longer with this option target: "experimental-serverless-trace", }; ```