File tree Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = {
55 ignoreDuringBuilds : true ,
66 } ,
77 experimental : {
8- runtime : 'edge' ,
8+ runtime : 'experimental- edge' ,
99 serverComponents : true ,
1010 } ,
1111}
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ export default function News() {
5050}
5151
5252export const config = {
53- runtime : 'edge' ,
53+ runtime : 'experimental- edge' ,
5454}
Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ function NewsWithData() {
2727 return (
2828 < >
2929 { 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 }
3635 </ >
3736 )
3837}
@@ -50,5 +49,5 @@ export default function News() {
5049}
5150
5251export 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'
1515import Skeletons from '../components/skeletons'
1616
1717function 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 ) )
2119 return < Story { ...data } />
2220}
2321
@@ -49,5 +47,5 @@ export default function News() {
4947}
5048
5149export const config = {
52- runtime : 'edge' ,
50+ runtime : 'experimental- edge' ,
5351}
You can’t perform that action at this time.
0 commit comments