Skip to content

Commit 96cf178

Browse files
authored
Merge branch 'main' into ep/implement-client-ip-through-context-obj
2 parents 3c3d748 + 8b18d69 commit 96cf178

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

demos/server-components/next.config.js

+1-1
Original file line numberDiff line numberDiff 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
}

demos/server-components/pages/csr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ export default function News() {
5050
}
5151

5252
export const config = {
53-
runtime: 'edge',
53+
runtime: 'experimental-edge',
5454
}

demos/server-components/pages/rsc.server.js

+7-8
Original file line numberDiff line numberDiff 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

5251
export const config = {
53-
runtime: 'edge',
54-
}
52+
runtime: 'experimental-edge',
53+
}

demos/server-components/pages/slow.server.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ import useData from '../lib/use-data'
1515
import Skeletons from '../components/skeletons'
1616

1717
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))
2119
return <Story {...data} />
2220
}
2321

@@ -49,5 +47,5 @@ export default function News() {
4947
}
5048

5149
export const config = {
52-
runtime: 'edge',
50+
runtime: 'experimental-edge',
5351
}

0 commit comments

Comments
 (0)