You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 10, 2021. It is now read-only.
* 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
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,18 @@ module.exports = {
64
64
};
65
65
```
66
66
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
+
67
79
#### 2. Add postbuild hook
68
80
69
81
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