File tree Expand file tree Collapse file tree 12 files changed +43
-42
lines changed Expand file tree Collapse file tree 12 files changed +43
-42
lines changed Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
2
+ command = " npm run build -w demos/base-path "
3
+ publish = " demos/base-path/ .next"
4
4
ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../..; fi;"
5
5
6
6
[build .environment ]
7
7
# cache Cypress binary in local "node_modules" folder
8
8
# so Netlify caches it
9
- CYPRESS_CACHE_FOLDER = " ../ node_modules/.CypressBinary"
9
+ CYPRESS_CACHE_FOLDER = " node_modules/.CypressBinary"
10
10
11
11
[[plugins ]]
12
12
package = " @netlify/plugin-nextjs"
@@ -16,4 +16,4 @@ package = "@netlify/plugin-nextjs"
16
16
package = " @netlify/plugin-local-install-core"
17
17
18
18
[[plugins ]]
19
- package = " .. /plugin-wrapper"
19
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
2
+ command = " npm run build -w demos/canary "
3
+ publish = " demos/canary/ .next"
4
4
ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../..; fi;"
5
5
6
6
[build .environment ]
@@ -15,4 +15,4 @@ package = "@netlify/plugin-nextjs"
15
15
package = " @netlify/plugin-local-install-core"
16
16
17
17
[[plugins ]]
18
- package = " .. /plugin-wrapper"
18
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
2
+ command = " npm run build -w demos/custom-routes "
3
+ publish = " demos/custom-routes/ .next"
4
4
ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../..; fi;"
5
5
6
6
[[plugins ]]
@@ -11,4 +11,4 @@ package = "@netlify/plugin-nextjs"
11
11
package = " @netlify/plugin-local-install-core"
12
12
13
13
[[plugins ]]
14
- package = " .. /plugin-wrapper"
14
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/default "
3
+ publish = " demos/default/ .next"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
# cache Cypress binary in local "node_modules" folder
8
8
# so Netlify caches it
9
- CYPRESS_CACHE_FOLDER = " ../ node_modules/.CypressBinary"
9
+ CYPRESS_CACHE_FOLDER = " node_modules/.CypressBinary"
10
10
# set TERM variable for terminal output
11
11
TERM = " xterm"
12
12
NODE_VERSION = " 16.15.1"
@@ -28,4 +28,4 @@ package = "@netlify/plugin-nextjs"
28
28
package = " @netlify/plugin-local-install-core"
29
29
30
30
[[plugins ]]
31
- package = " .. /plugin-wrapper"
31
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " npm run build"
3
- publish = " .next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/middleware "
3
+ publish = " demos/middleware/ .next"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
NEXT_SPLIT_API_ROUTES = " true"
@@ -15,7 +15,7 @@ package = "@netlify/plugin-nextjs"
15
15
package = " @netlify/plugin-local-install-core"
16
16
17
17
[[plugins ]]
18
- package = " .. /plugin-wrapper"
18
+ package = " demos /plugin-wrapper"
19
19
# Uncomment this if testing the built files rather than dev
20
20
# [dev]
21
21
# framework = "#static"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/next-auth "
3
+ publish = " demos/next-auth/ .next"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
TERM = " xterm"
@@ -14,4 +14,4 @@ package = "@netlify/plugin-nextjs"
14
14
package = " @netlify/plugin-local-install-core"
15
15
16
16
[[plugins ]]
17
- package = " .. /plugin-wrapper"
17
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build && next export"
3
- publish = " out"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/ next- export"
3
+ publish = " demos/next-export/ out"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
NETLIFY_NEXT_PLUGIN_SKIP = " true"
@@ -14,4 +14,4 @@ package = "@netlify/plugin-nextjs"
14
14
package = " @netlify/plugin-local-install-core"
15
15
16
16
[[plugins ]]
17
- package = " .. /plugin-wrapper"
17
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 17
17
"typescript" : " ^4.6.3"
18
18
},
19
19
"scripts" : {
20
+ "build" : " next build && next export" ,
20
21
"test" : " echo \" Error: no test specified\" && exit 1"
21
22
},
22
23
"repository" : {
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/next-i18next "
3
+ publish = " demos/next-i18next/ .next"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[[plugins ]]
7
7
package = " @netlify/plugin-nextjs"
@@ -11,4 +11,4 @@ package = "@netlify/plugin-nextjs"
11
11
package = " @netlify/plugin-local-install-core"
12
12
13
13
[[plugins ]]
14
- package = " .. /plugin-wrapper"
14
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
2
+ command = " npm run build -w demos/next-with-edge-functions "
3
+ publish = " demos/next-with-edge-functions/ .next"
4
4
5
5
[[plugins ]]
6
6
package = " @netlify/plugin-nextjs"
@@ -10,4 +10,4 @@ package = "@netlify/plugin-nextjs"
10
10
package = " @netlify/plugin-local-install-core"
11
11
12
12
[[plugins ]]
13
- package = " .. /plugin-wrapper"
13
+ package = " demos /plugin-wrapper"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " npm run build"
2
+ command = " npm run build -w demos/nx-next-monorepo-demo "
3
3
publish = " dist/apps/demo-monorepo/.next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
NEXT_SPLIT_API_ROUTES = " true"
8
8
NEXT_BUNDLE_BASED_ON_NFT_FILES = " true"
9
9
10
10
[dev ]
11
- command = " npm run start"
11
+ command = " npm run start -w demos/nx-next-monorepo-demo "
12
12
targetPort = 4200
13
13
14
14
[[plugins ]]
15
- package = " .. /plugin-wrapper"
15
+ package = " demos /plugin-wrapper"
16
16
17
17
[[plugins ]]
18
18
package = " @netlify/plugin-nextjs"
Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " next build"
3
- publish = " .next"
4
- ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.. ; fi;"
2
+ command = " npm run build -w demos/static-root "
3
+ publish = " demos/static-root/ .next"
4
+ ignore = " if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./ ; fi;"
5
5
6
6
[build .environment ]
7
7
NEXT_SPLIT_API_ROUTES = " true"
@@ -15,4 +15,4 @@ package = "@netlify/plugin-nextjs"
15
15
package = " @netlify/plugin-local-install-core"
16
16
17
17
[[plugins ]]
18
- package = " .. /plugin-wrapper"
18
+ package = " demos /plugin-wrapper"
You can’t perform that action at this time.
0 commit comments