File tree 6 files changed +314
-14
lines changed
6 files changed +314
-14
lines changed Original file line number Diff line number Diff line change 9
9
"ntl" : " ntl-internal"
10
10
},
11
11
"dependencies" : {
12
- "next" : " ^12.1.5 -canary.2 " ,
12
+ "next" : " ^12.1.7 -canary.1 " ,
13
13
"react" : " 18.0.0" ,
14
14
"react-dom" : " 18.0.0"
15
15
},
Original file line number Diff line number Diff line change 1
1
[build ]
2
2
command = " npm run build"
3
3
publish = " .next"
4
+ ignore = " git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../.."
4
5
5
6
[build .environment ]
6
7
NEXT_USE_NETLIFY_EDGE = " true"
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
+ eslint : {
3
+ // Warning: This allows production builds to successfully complete even if
4
+ // your project has ESLint errors.
5
+ ignoreDuringBuilds : true ,
6
+ } ,
2
7
experimental : {
3
8
runtime : 'edge' ,
4
9
serverComponents : true ,
Original file line number Diff line number Diff line change 11
11
"private" : true ,
12
12
"dependencies" : {
13
13
"ms" : " 2.1.3" ,
14
- "next" : " ^12.1.5 -canary.2 " ,
14
+ "next" : " ^12.1.7 -canary.1 " ,
15
15
"react" : " ^18.0.0" ,
16
16
"react-dom" : " ^18.0.0"
17
17
},
Original file line number Diff line number Diff line change
1
+
1
2
import ItemPage from '../components/item.server'
2
3
3
- export default function Item ( { router } ) {
4
- const { id } = router . query
4
+ export default function Item ( { id } ) {
5
5
return < ItemPage id = { id } />
6
6
}
7
7
8
- export const config = {
9
- runtime : 'edge' ,
8
+ export async function getServerSideProps ( { query } ) {
9
+ return {
10
+ props : {
11
+ id : query . id
12
+ }
13
+ }
10
14
}
You can’t perform that action at this time.
0 commit comments