File tree 4 files changed +11
-14
lines changed
4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = {
5
5
ignoreDuringBuilds : true ,
6
6
} ,
7
7
experimental : {
8
- runtime : 'edge' ,
8
+ runtime : 'experimental- edge' ,
9
9
serverComponents : true ,
10
10
} ,
11
11
}
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ export default function News() {
50
50
}
51
51
52
52
export const config = {
53
- runtime : 'edge' ,
53
+ runtime : 'experimental- edge' ,
54
54
}
Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ function NewsWithData() {
27
27
return (
28
28
< >
29
29
{ error ? < ErrorPlaceholder error = { error } /> : null }
30
- { storyIds ?
31
- storyIds . slice ( 0 , 30 ) . map ( ( id ) => {
32
- return < StoryWithData id = { id } key = { id } />
33
- } ) :
34
- null
35
- }
30
+ { storyIds
31
+ ? storyIds . slice ( 0 , 30 ) . map ( ( id ) => {
32
+ return < StoryWithData id = { id } key = { id } />
33
+ } )
34
+ : null }
36
35
</ >
37
36
)
38
37
}
@@ -50,5 +49,5 @@ export default function News() {
50
49
}
51
50
52
51
export const config = {
53
- runtime : 'edge' ,
54
- }
52
+ runtime : 'experimental- edge' ,
53
+ }
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ import useData from '../lib/use-data'
15
15
import Skeletons from '../components/skeletons'
16
16
17
17
function StoryWithData ( { id } ) {
18
- const { data } = useData ( `s-${ id } ` , ( ) =>
19
- fetchData ( `item/${ id } ` ) . then ( transform )
20
- )
18
+ const { data } = useData ( `s-${ id } ` , ( ) => fetchData ( `item/${ id } ` ) . then ( transform ) )
21
19
return < Story { ...data } />
22
20
}
23
21
@@ -49,5 +47,5 @@ export default function News() {
49
47
}
50
48
51
49
export const config = {
52
- runtime : 'edge' ,
50
+ runtime : 'experimental- edge' ,
53
51
}
You can’t perform that action at this time.
0 commit comments