From 379f2d82c28a8f963562aae9277b742d85385a6f Mon Sep 17 00:00:00 2001 From: Ahmed Abdelbaset Date: Tue, 26 Sep 2023 23:09:21 +0300 Subject: [PATCH] chore: Remove 'beta.' Subdomain from `beta.nextjs.org` Links (#55924) **low-priority chore change** ## What? This PR removes the 'beta.' prefix from links beginning with it. These links are no longer in beta and are now automatically redirected to their non-beta versions. The change serves as a minor enhancement. --- examples/with-storybook/app/page.tsx | 2 +- examples/with-turbopack/app/error-handling/page.tsx | 2 +- examples/with-turbopack/app/hooks/page.tsx | 2 +- examples/with-turbopack/app/isr/page.tsx | 2 +- examples/with-turbopack/app/layouts/page.tsx | 2 +- examples/with-turbopack/app/loading/page.tsx | 2 +- .../app/not-found/[categorySlug]/[subCategorySlug]/page.tsx | 2 +- .../with-turbopack/app/not-found/[categorySlug]/layout.tsx | 2 +- .../with-turbopack/app/not-found/[categorySlug]/page.tsx | 2 +- examples/with-turbopack/app/not-found/page.tsx | 6 +++--- examples/with-turbopack/app/route-groups/(main)/page.tsx | 2 +- examples/with-turbopack/app/snippets/search-params/page.tsx | 4 ++-- examples/with-turbopack/app/ssg/page.tsx | 2 +- examples/with-turbopack/app/ssr/page.tsx | 2 +- .../app/streaming/_components/add-to-cart.tsx | 4 ++-- examples/with-turbopack/app/streaming/page.tsx | 2 +- packages/next/types/index.d.ts | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/with-storybook/app/page.tsx b/examples/with-storybook/app/page.tsx index 01946f7979e18..261c22c79596b 100644 --- a/examples/with-storybook/app/page.tsx +++ b/examples/with-storybook/app/page.tsx @@ -44,7 +44,7 @@ export default function Home() {
- + Docs diff --git a/examples/with-turbopack/app/hooks/page.tsx b/examples/with-turbopack/app/hooks/page.tsx index 6635d5bed1c65..11264ad228d1e 100644 --- a/examples/with-turbopack/app/hooks/page.tsx +++ b/examples/with-turbopack/app/hooks/page.tsx @@ -19,7 +19,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/isr/page.tsx b/examples/with-turbopack/app/isr/page.tsx index b1c37f6a054b0..5498ef06e45b5 100644 --- a/examples/with-turbopack/app/isr/page.tsx +++ b/examples/with-turbopack/app/isr/page.tsx @@ -18,7 +18,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/layouts/page.tsx b/examples/with-turbopack/app/layouts/page.tsx index dd2744c8eb52b..465b04a08001e 100644 --- a/examples/with-turbopack/app/layouts/page.tsx +++ b/examples/with-turbopack/app/layouts/page.tsx @@ -15,7 +15,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/loading/page.tsx b/examples/with-turbopack/app/loading/page.tsx index 8b8227ac9559a..e990adf1c3af6 100644 --- a/examples/with-turbopack/app/loading/page.tsx +++ b/examples/with-turbopack/app/loading/page.tsx @@ -23,7 +23,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/not-found/[categorySlug]/[subCategorySlug]/page.tsx b/examples/with-turbopack/app/not-found/[categorySlug]/[subCategorySlug]/page.tsx index cbeddffff688b..7fab61a9dd9a7 100644 --- a/examples/with-turbopack/app/not-found/[categorySlug]/[subCategorySlug]/page.tsx +++ b/examples/with-turbopack/app/not-found/[categorySlug]/[subCategorySlug]/page.tsx @@ -10,7 +10,7 @@ export default async function Page({ // - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - For `layout.js`, the closest `not-found.tsx` starts from the parent segment. // - For `page.js`, the closest `not-found.tsx` starts from the same segment. - // - Learn more: https://beta.nextjs.org/docs/routing/fundamentals#component-hierarchy. + // - Learn more: https://nextjs.org/docs/app/building-your-application/routing#component-hierarchy const category = await getCategory({ slug: params.subCategorySlug }) return ( diff --git a/examples/with-turbopack/app/not-found/[categorySlug]/layout.tsx b/examples/with-turbopack/app/not-found/[categorySlug]/layout.tsx index 6056b4f5129e2..f3faa6d6775e5 100644 --- a/examples/with-turbopack/app/not-found/[categorySlug]/layout.tsx +++ b/examples/with-turbopack/app/not-found/[categorySlug]/layout.tsx @@ -13,7 +13,7 @@ export default async function Layout({ // - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - For `layout.js`, the closest `not-found.tsx` starts from the parent segment. // - For `page.js`, the closest `not-found.tsx` starts from the same segment. - // - Learn more: https://beta.nextjs.org/docs/routing/fundamentals#component-hierarchy. + // - Learn more: https://nextjs.org/docs/app/building-your-application/routing#component-hierarchy const category = await getCategory({ slug: params.categorySlug }) const categories = await getCategories({ parent: params.categorySlug }) diff --git a/examples/with-turbopack/app/not-found/[categorySlug]/page.tsx b/examples/with-turbopack/app/not-found/[categorySlug]/page.tsx index 101b279dc0139..e09b8fa64e735 100644 --- a/examples/with-turbopack/app/not-found/[categorySlug]/page.tsx +++ b/examples/with-turbopack/app/not-found/[categorySlug]/page.tsx @@ -10,7 +10,7 @@ export default async function Page({ // - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - For `layout.js`, the closest `not-found.tsx` starts from the parent segment. // - For `page.js`, the closest `not-found.tsx` starts from the same segment. - // - Learn more: https://beta.nextjs.org/docs/routing/fundamentals#component-hierarchy. + // - Learn more: https://nextjs.org/docs/app/building-your-application/routing#component-hierarchy const category = await getCategory({ slug: params.categorySlug }) return ( diff --git a/examples/with-turbopack/app/not-found/page.tsx b/examples/with-turbopack/app/not-found/page.tsx index c14612ad58d2b..2c67c44966598 100644 --- a/examples/with-turbopack/app/not-found/page.tsx +++ b/examples/with-turbopack/app/not-found/page.tsx @@ -9,13 +9,13 @@ export default function Page() {
  • - + not-found.js {' '} file is used to render UI when the{' '} - + notFound() {' '} @@ -41,7 +41,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/route-groups/(main)/page.tsx b/examples/with-turbopack/app/route-groups/(main)/page.tsx index b45be1dc6c99b..834e7f0570004 100644 --- a/examples/with-turbopack/app/route-groups/(main)/page.tsx +++ b/examples/with-turbopack/app/route-groups/(main)/page.tsx @@ -26,7 +26,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/snippets/search-params/page.tsx b/examples/with-turbopack/app/snippets/search-params/page.tsx index 08e35bef58d37..9708249d9b302 100644 --- a/examples/with-turbopack/app/snippets/search-params/page.tsx +++ b/examples/with-turbopack/app/snippets/search-params/page.tsx @@ -50,7 +50,7 @@ export default async function Page({ searchParams }: { searchParams: any }) { - + Docs
@@ -95,7 +95,7 @@ export default async function Page({ searchParams }: { searchParams: any }) {
- + Docs
diff --git a/examples/with-turbopack/app/ssg/page.tsx b/examples/with-turbopack/app/ssg/page.tsx index e86d38837740b..61422e9b32186 100644 --- a/examples/with-turbopack/app/ssg/page.tsx +++ b/examples/with-turbopack/app/ssg/page.tsx @@ -19,7 +19,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/ssr/page.tsx b/examples/with-turbopack/app/ssr/page.tsx index aec1981682b1b..c3d5175fa2837 100644 --- a/examples/with-turbopack/app/ssr/page.tsx +++ b/examples/with-turbopack/app/ssr/page.tsx @@ -17,7 +17,7 @@ export default function Page() {
- + Docs diff --git a/examples/with-turbopack/app/streaming/_components/add-to-cart.tsx b/examples/with-turbopack/app/streaming/_components/add-to-cart.tsx index c19cb70ef2ecd..e86f9eafa865a 100644 --- a/examples/with-turbopack/app/streaming/_components/add-to-cart.tsx +++ b/examples/with-turbopack/app/streaming/_components/add-to-cart.tsx @@ -30,8 +30,8 @@ export function AddToCart({ initialCartCount }: { initialCartCount: number }) { // losing client-side browser or React state. router.refresh() - // We're working on more fine-grained data mutation and revalidation: - // https://beta.nextjs.org/docs/data-fetching/mutating + // We've done more fine-grained data mutation and revalidation: + // https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations }) } diff --git a/examples/with-turbopack/app/streaming/page.tsx b/examples/with-turbopack/app/streaming/page.tsx index 09bae35ce6419..df38b76b46aa1 100644 --- a/examples/with-turbopack/app/streaming/page.tsx +++ b/examples/with-turbopack/app/streaming/page.tsx @@ -26,7 +26,7 @@ export default async function Page() {
- + Docs diff --git a/packages/next/types/index.d.ts b/packages/next/types/index.d.ts index 90d7c96d17beb..625b0698c164e 100644 --- a/packages/next/types/index.d.ts +++ b/packages/next/types/index.d.ts @@ -42,7 +42,7 @@ export type { /** * Stub route type for typedRoutes before `next dev` or `next build` is run - * @link https://beta.nextjs.org/docs/configuring/typescript#statically-typed-links + * @link https://nextjs.org/docs/app/building-your-application/configuring/typescript#statically-typed-links * @example * ```ts * import type { Route } from 'next'