7 |
Next.js docs
8 |
Branch/Tag: static
9 |
10 | {allPosts.map((post, idx) => (
11 |
12 | {post.url}
13 |
14 | //
15 | ))}
16 |
17 | )
18 | }
19 |
--------------------------------------------------------------------------------
/examples/next-rsc-dynamic/app/v/page.tsx:
--------------------------------------------------------------------------------
1 | import { redirect } from 'next/navigation'
2 |
3 | export default async function Page() {
4 | return redirect('/v/canary')
5 | }
6 |
--------------------------------------------------------------------------------
/examples/next-rsc-dynamic/components/Button.tsx:
--------------------------------------------------------------------------------
1 | import { FC } from 'react'
2 | import React from 'react'
3 |
4 | export const Button: FC<{ title: string }> = ({ title }) => (
5 |