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

Commit 6b3b0a0

Browse files
authored
Update to prevent #55 from occurring again (#59)
* 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. * Include default option and a binary option
1 parent 3033a30 commit 6b3b0a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ module.exports = {
6464
};
6565
```
6666

67+
If binaries are needed in the deployment the following configuration is needed ([Prisma](https://github.com/prisma/prisma) is an example):
68+
69+
```js
70+
// next.config.js
71+
72+
module.exports = {
73+
// Target must be experimental-serverless-trace
74+
// Your build time will be longer with this option
75+
target: "experimental-serverless-trace",
76+
};
77+
```
78+
6779
#### 2. Add postbuild hook
6880

6981
The next-on-netlify package adds the `next-on-netlify` command. When we run this command, some magic happens to prepare our NextJS app for hosting on Netlify\*.

0 commit comments

Comments
 (0)