Skip to content

Commit 2d87e88

Browse files
committed
Add hook: Run next-on-netlify after build
Add a postbuild hook to package.json that triggers the next-on-netlify action after running `npm run build`.
1 parent 2cc81ca commit 2d87e88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "next-on-netlify-demo",
33
"scripts": {
44
"dev": "next",
5-
"build": "next build"
5+
"build": "next build",
6+
"postbuild": "next-on-netlify"
67
},
78
"dependencies": {
89
"isomorphic-unfetch": "^3.0.0",

0 commit comments

Comments
 (0)