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

Appearance settings

Commit 2d87e88

Browse filesBrowse 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
Copy full SHA for 2d87e88

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎package.json

Copy file name to clipboardExpand all lines: package.json
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.