Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2d87e88

Browse files
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /