Skip to content

Commit 8622907

Browse files
committed
Replace next-on-netlify with netlify plugin
1 parent 9f040d7 commit 8622907

File tree

4 files changed

+1505
-62
lines changed

4 files changed

+1505
-62
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,3 @@ yarn-error.log*
3232

3333
# netlify
3434
.netlify
35-
/out_publish/
36-
/out_functions/

netlify.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
2-
command = "yarn build-netlify"
3-
functions = "out_functions"
4-
publish = "out_publish"
2+
command = "yarn build"
3+
[[plugins]]
4+
package = "@netlify/plugin-nextjs"

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"build-netlify": "next build",
9-
"postbuild-netlify": "next-on-netlify",
108
"preexport": "next build",
119
"export": "next export",
1210
"serve": "serve out",
@@ -17,7 +15,6 @@
1715
"dotenv-defaults": "^2.0.1",
1816
"gray-matter": "^4.0.2",
1917
"next": "^10.0.0",
20-
"next-on-netlify": "^2.6.0",
2118
"next-themes": "^0.0.8",
2219
"next-tinacms-github": "^0.33.0",
2320
"react": "^17.0.1",
@@ -31,6 +28,7 @@
3128
"tinacms": "^0.33.0"
3229
},
3330
"devDependencies": {
31+
"@netlify/plugin-nextjs": "^1.0.2",
3432
"@tailwindcss/forms": "^0.2.1",
3533
"@tailwindcss/typography": "^0.3.1",
3634
"@types/node": "^14.0.5",

0 commit comments

Comments
 (0)