File tree Expand file tree Collapse file tree 21 files changed +42
-29
lines changed Expand file tree Collapse file tree 21 files changed +42
-29
lines changed Original file line number Diff line number Diff line change 1
- const { overrides } = require ( '@netlify/eslint-config-node' )
1
+ const { overrides } = require ( '@netlify/eslint-config-node/react_config ' )
2
2
3
3
module . exports = {
4
- extends : '@netlify/eslint-config-node' ,
4
+ extends : '@netlify/eslint-config-node/react_config ' ,
5
5
rules : {
6
6
complexity : 0 ,
7
7
'fp/no-let' : 0 ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends": "next",
3
+ "root": true
4
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ // Supported targets are "serverless" and "experimental-serverless-trace"
3
+ target : "serverless"
4
+ }
Original file line number Diff line number Diff line change 11
11
"next" : " ^11.0.0" ,
12
12
"react" : " 17.0.2" ,
13
13
"react-dom" : " 17.0.2"
14
- },
15
- "devDependencies" : {
16
- "eslint-config-next" : " ^11.0.0"
17
14
}
18
15
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const Index = ({ shows }) => (
61
61
< h1 > 3. Catch-All Routes? Included ✔</ h1 >
62
62
< p >
63
63
You can even take advantage of{ ' ' }
64
- < a href = "https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes" > NextJS' catch-all routes feature</ a >
64
+ < a href = "https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes" > NextJS catch-all routes feature</ a >
65
65
.
66
66
< br />
67
67
Here are three examples:
@@ -90,7 +90,7 @@ const Index = ({ shows }) => (
90
90
< br />
91
91
Only dynamic pages are server-side rendered.
92
92
< br />
93
- Static pages are pre-rendered and served directly by Netlify' s CDN.
93
+ Static pages are pre-rendered and served directly by Netlify' s CDN.
94
94
</ p >
95
95
96
96
< ul >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Static = (props) => (
9
9
< br />
10
10
It is never server-side rendered.
11
11
< br />
12
- It is served directly by Netlify' s CDN.
12
+ It is served directly by Netlify' s CDN.
13
13
< br />
14
14
The < a href = "https://www.npmjs.com/package/next-on-netlify" > next-on-netlify</ a > npm package takes care of deciding
15
15
which pages to render server-side and which ones to serve directly via CDN.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const StaticWithID = (props) => (
9
9
< br />
10
10
It is never server-side rendered.
11
11
< br />
12
- It is served directly by Netlify' s CDN.
12
+ It is served directly by Netlify' s CDN.
13
13
< br />
14
14
< br />
15
15
But it has a dynamic URL parameter: /static/:id.
@@ -18,7 +18,7 @@ const StaticWithID = (props) => (
18
18
< br />
19
19
I am not sure what this is useful for.
20
20
< br />
21
- But it' s a feature of NextJS, so... I' m supporting it.
21
+ But it' s a feature of NextJS, so... I' m supporting it.
22
22
</ p >
23
23
24
24
< hr />
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const Index = ({ shows }) => (
61
61
< h1 > 3. Catch-All Routes? Included ✔</ h1 >
62
62
< p >
63
63
You can even take advantage of{ ' ' }
64
- < a href = "https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes" > NextJS' catch-all routes feature</ a >
64
+ < a href = "https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes" > NextJS catch-all routes feature</ a >
65
65
.
66
66
< br />
67
67
Here are three examples:
@@ -198,7 +198,7 @@ const Index = ({ shows }) => (
198
198
< br />
199
199
Only dynamic pages are server-side rendered.
200
200
< br />
201
- Static pages are pre-rendered and served directly by Netlify' s CDN.
201
+ Static pages are pre-rendered and served directly by Netlify' s CDN.
202
202
</ p >
203
203
204
204
< ul >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Static = (props) => (
9
9
< br />
10
10
It is never server-side rendered.
11
11
< br />
12
- It is served directly by Netlify' s CDN.
12
+ It is served directly by Netlify' s CDN.
13
13
< br />
14
14
The < a href = "https://www.npmjs.com/package/next-on-netlify" > next-on-netlify</ a > npm package takes care of deciding
15
15
which pages to render server-side and which ones to serve directly via CDN.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const StaticWithID = (props) => (
9
9
< br />
10
10
It is never server-side rendered.
11
11
< br />
12
- It is served directly by Netlify' s CDN.
12
+ It is served directly by Netlify' s CDN.
13
13
< br />
14
14
< br />
15
15
But it has a dynamic URL parameter: /static/:id.
@@ -18,7 +18,7 @@ const StaticWithID = (props) => (
18
18
< br />
19
19
I am not sure what this is useful for.
20
20
< br />
21
- But it' s a feature of NextJS, so... I' m supporting it.
21
+ But it' s a feature of NextJS, so... I' m supporting it.
22
22
</ p >
23
23
24
24
< hr />
You can’t perform that action at this time.
0 commit comments