File tree Expand file tree Collapse file tree 21 files changed +90
-141
lines changed
turborepo-next-monorepo-demo Expand file tree Collapse file tree 21 files changed +90
-141
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff
8
8
# so Netlify caches it
9
9
CYPRESS_CACHE_FOLDER = " ../node_modules/.CypressBinary"
10
10
11
- [dev ]
12
- framework = " #static"
13
-
14
11
[[plugins ]]
15
- package = " .. /plugin-wrapper/ "
12
+ package = " @netlify /plugin-nextjs "
16
13
14
+ # This is a fake plugin, that makes it run npm install
17
15
[[plugins ]]
18
16
package = " @netlify/plugin-local-install-core"
19
- # [[context.deploy-preview.plugins]]
20
- # package = "netlify-plugin-cypress"
17
+
18
+ [[plugins ]]
19
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ command = "next build"
3
3
publish = " .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
- [dev ]
7
- framework = " #static"
8
-
9
6
[[plugins ]]
10
- package = " .. /plugin-wrapper/ "
7
+ package = " @netlify /plugin-nextjs "
11
8
9
+ # This is a fake plugin, that makes it run npm install
12
10
[[plugins ]]
13
11
package = " @netlify/plugin-local-install-core"
14
- # [[context.deploy-preview.plugins]]
15
- # package = "netlify-plugin-cypress"
12
+
13
+ [[plugins ]]
14
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -12,15 +12,18 @@ TERM = "xterm"
12
12
NODE_VERSION = " 16.15.1"
13
13
14
14
[[headers ]]
15
- for = " /_next/image/*"
16
-
17
- [headers .values ]
18
- Strict-Transport-Security = " max-age=31536000"
19
- X-Test = ' foobar'
15
+ for = " /_next/image/*"
16
+
17
+ [headers .values ]
18
+ Strict-Transport-Security = " max-age=31536000"
19
+ X-Test = ' foobar'
20
20
21
21
[[plugins ]]
22
- package = " .. /plugin-wrapper/ "
22
+ package = " @netlify /plugin-nextjs "
23
23
24
24
# This is a fake plugin, that makes it run npm install
25
25
[[plugins ]]
26
26
package = " @netlify/plugin-local-install-core"
27
+
28
+ [[plugins ]]
29
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -4,19 +4,14 @@ publish = ".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 ]]
7
- # Switch these when testing `ntl dev`
8
- # package = "@netlify/plugin-nextjs"
9
- package = " ../plugin-wrapper/"
7
+ package = " @netlify/plugin-nextjs"
10
8
11
9
# This is a fake plugin, that makes it run npm install
12
10
[[plugins ]]
13
11
package = " @netlify/plugin-local-install-core"
14
12
15
- [functions ]
16
- included_files = [
17
- " !node_modules/sharp/vendor/8.12.2/darwin-*/**/*" ,
18
- " !node_modules/sharp/build/Release/sharp-darwin-*"
19
- ]
13
+ [[plugins ]]
14
+ package = " ../plugin-wrapper"
20
15
# Uncomment this if testing the built files rather than dev
21
16
# [dev]
22
17
# framework = "#static"
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff
7
7
TERM = " xterm"
8
8
NODE_VERSION = " 17"
9
9
10
- [dev ]
11
- framework = " #static"
12
-
13
10
[[plugins ]]
14
- package = " .. /plugin-wrapper/ "
11
+ package = " @netlify /plugin-nextjs "
15
12
16
13
# This is a fake plugin, that makes it run npm install
17
14
[[plugins ]]
18
15
package = " @netlify/plugin-local-install-core"
16
+
17
+ [[plugins ]]
18
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff
7
7
NETLIFY_NEXT_PLUGIN_SKIP = " true"
8
8
NODE_VERSION = " 17"
9
9
10
- [dev ]
11
- framework = " #static"
12
-
13
10
[[plugins ]]
14
- package = " .. /plugin-wrapper/ "
11
+ package = " @netlify /plugin-nextjs "
15
12
13
+ # This is a fake plugin, that makes it run npm install
16
14
[[plugins ]]
17
15
package = " @netlify/plugin-local-install-core"
16
+
17
+ [[plugins ]]
18
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ command = "next build"
3
3
publish = " .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
- [build .environment ]
7
- TERM = " xterm"
8
- NODE_VERSION = " 17"
9
-
10
6
[[plugins ]]
11
- package = " .. /plugin-wrapper/ "
7
+ package = " @netlify /plugin-nextjs "
12
8
13
9
# This is a fake plugin, that makes it run npm install
14
10
[[plugins ]]
15
11
package = " @netlify/plugin-local-install-core"
12
+
13
+ [[plugins ]]
14
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change 2
2
command = " next build"
3
3
publish = " .next"
4
4
5
- [dev ]
6
- framework = " #static"
7
-
8
5
[[plugins ]]
9
- package = " .. /plugin-wrapper/ "
6
+ package = " @netlify /plugin-nextjs "
10
7
11
8
# This is a fake plugin, that makes it run npm install
12
9
[[plugins ]]
13
10
package = " @netlify/plugin-local-install-core"
14
11
15
- [[edge_functions ]]
16
- path = " /"
17
- function = " helloOnTheEdge"
12
+ [[plugins ]]
13
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ command = "npm run start"
8
8
targetPort = 4200
9
9
10
10
[[plugins ]]
11
- package = " ../plugin-wrapper"
12
-
13
- [build .environment ]
14
- # cache Cypress binary in local "node_modules" folder
15
- # so Netlify caches it
16
- CYPRESS_CACHE_FOLDER = " ../node_modules/.CypressBinary"
17
- # set TERM variable for terminal output
18
- TERM = " xterm"
11
+ package = " @netlify/plugin-nextjs"
19
12
13
+ # This is a fake plugin, that makes it run npm install
20
14
[[plugins ]]
21
15
package = " @netlify/plugin-local-install-core"
16
+
17
+ [[plugins ]]
18
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change
1
+ # plugin-wrapper
2
+
3
+ This empty plugin exists to ensure the demo sites can use ` "@netlify/plugin-local-install-core" ` to run ` npm install ` ,
4
+ which in turn builds the runtime package. This is needed because ` npm install ` isn't run in the site if the dependencies
5
+ are unchanged.
Original file line number Diff line number Diff line change 1
- // eslint-disable-next-line n/no-unpublished-require
2
- module . exports = require ( '../../packages/runtime/lib' )
1
+ module . exports = { }
Original file line number Diff line number Diff line change @@ -4,17 +4,11 @@ publish = ".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 ]]
7
- package = " .. /plugin-wrapper/ "
7
+ package = " @netlify /plugin-nextjs "
8
8
9
9
# This is a fake plugin, that makes it run npm install
10
10
[[plugins ]]
11
11
package = " @netlify/plugin-local-install-core"
12
12
13
- [functions ]
14
- included_files = [
15
- " !node_modules/sharp/vendor/8.12.2/darwin-*/**/*" ,
16
- " !node_modules/sharp/build/Release/sharp-darwin-*"
17
- ]
18
-
19
- [dev ]
20
- framework = " #static"
13
+ [[plugins ]]
14
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -3,17 +3,12 @@ command = "next build"
3
3
publish = " .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
- [build .environment ]
7
- # cache Cypress binary in local "node_modules" folder
8
- # so Netlify caches it
9
- CYPRESS_CACHE_FOLDER = " ../node_modules/.CypressBinary"
10
- NODE_VERSION = " 17"
11
-
12
- [dev ]
13
- framework = " #static"
14
-
15
6
[[plugins ]]
16
- package = " .. /plugin-wrapper/ "
7
+ package = " @netlify /plugin-nextjs "
17
8
9
+ # This is a fake plugin, that makes it run npm install
18
10
[[plugins ]]
19
11
package = " @netlify/plugin-local-install-core"
12
+
13
+ [[plugins ]]
14
+ package = " ../plugin-wrapper"
Original file line number Diff line number Diff line change @@ -9,11 +9,15 @@ publish = "apps/web/.next"
9
9
command = " npm run dev"
10
10
11
11
[[plugins ]]
12
- package = " ./packages/local- plugin"
12
+ package = " @netlify/ plugin-nextjs "
13
13
14
+ # This is a fake plugin, that makes it run npm install
14
15
[[plugins ]]
15
16
package = " @netlify/plugin-local-install-core"
16
17
18
+ [[plugins ]]
19
+ package = " ../plugin-wrapper"
20
+
17
21
[[edge_functions ]]
18
22
path = " /edge"
19
23
function = " edge"
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments