Unverified Commit 379f2d82 authored by Ahmed Abdelbaset's avatar Ahmed Abdelbaset Committed by GitHub

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.
parent 22380dfe
...@@ -44,7 +44,7 @@ export default function Home() { ...@@ -44,7 +44,7 @@ export default function Home() {
<div className={styles.grid}> <div className={styles.grid}>
<a <a
href="https://beta.nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card} className={styles.card}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
......
...@@ -22,7 +22,7 @@ export default function Page() { ...@@ -22,7 +22,7 @@ export default function Page() {
<div className="flex gap-2"> <div className="flex gap-2">
<BuggyButton /> <BuggyButton />
<ExternalLink href="https://beta.nextjs.org/docs/routing/error-handling"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/routing/error-handling">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/error-handling"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/error-handling">
......
...@@ -19,7 +19,7 @@ export default function Page() { ...@@ -19,7 +19,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/data-fetching/fetching#revalidating-data"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/rendering/client-components">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/hooks"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/hooks">
......
...@@ -18,7 +18,7 @@ export default function Page() { ...@@ -18,7 +18,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/data-fetching/fetching#revalidating-data"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/isr"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/isr">
......
...@@ -15,7 +15,7 @@ export default function Page() { ...@@ -15,7 +15,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/routing/pages-and-layouts"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#layouts">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/layouts"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/layouts">
......
...@@ -23,7 +23,7 @@ export default function Page() { ...@@ -23,7 +23,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/routing/loading-ui"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/loading"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/loading">
......
...@@ -10,7 +10,7 @@ export default async function Page({ ...@@ -10,7 +10,7 @@ export default async function Page({
// - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - `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 `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. // - 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 }) const category = await getCategory({ slug: params.subCategorySlug })
return ( return (
......
...@@ -13,7 +13,7 @@ export default async function Layout({ ...@@ -13,7 +13,7 @@ export default async function Layout({
// - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - `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 `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. // - 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 category = await getCategory({ slug: params.categorySlug })
const categories = await getCategories({ parent: params.categorySlug }) const categories = await getCategories({ parent: params.categorySlug })
......
...@@ -10,7 +10,7 @@ export default async function Page({ ...@@ -10,7 +10,7 @@ export default async function Page({
// - `notFound()` renders the closest `not-found.tsx` in the route segment hierarchy. // - `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 `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. // - 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 category = await getCategory({ slug: params.categorySlug })
return ( return (
......
...@@ -9,13 +9,13 @@ export default function Page() { ...@@ -9,13 +9,13 @@ export default function Page() {
<ul> <ul>
<li> <li>
<code> <code>
<Link href="https://beta.nextjs.org/docs/api-reference/file-conventions/not-found"> <Link href="https://nextjs.org/docs/app/api-reference/file-conventions/not-found">
not-found.js not-found.js
</Link> </Link>
</code>{' '} </code>{' '}
file is used to render UI when the{' '} file is used to render UI when the{' '}
<code> <code>
<Link href="https://beta.nextjs.org/docs/api-reference/notfound"> <Link href="https://nextjs.org/docs/app/api-reference/functions/not-found">
notFound() notFound()
</Link> </Link>
</code>{' '} </code>{' '}
...@@ -41,7 +41,7 @@ export default function Page() { ...@@ -41,7 +41,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/api-reference/file-conventions/not-found"> <ExternalLink href="https://nextjs.org/docs/app/api-reference/file-conventions/not-found">
Docs Docs
</ExternalLink> </ExternalLink>
......
...@@ -26,7 +26,7 @@ export default function Page() { ...@@ -26,7 +26,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/routing/defining-routes#route-groups"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/routing/route-groups">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/route-groups"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/route-groups">
......
...@@ -50,7 +50,7 @@ export default async function Page({ searchParams }: { searchParams: any }) { ...@@ -50,7 +50,7 @@ export default async function Page({ searchParams }: { searchParams: any }) {
</Suspense> </Suspense>
</Boundary> </Boundary>
<ExternalLink href="https://beta.nextjs.org/docs/api-reference/use-search-params"> <ExternalLink href="https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams">
Docs Docs
</ExternalLink> </ExternalLink>
</div> </div>
...@@ -95,7 +95,7 @@ export default async function Page({ searchParams }: { searchParams: any }) { ...@@ -95,7 +95,7 @@ export default async function Page({ searchParams }: { searchParams: any }) {
</div> </div>
</Boundary> </Boundary>
<ExternalLink href="https://beta.nextjs.org/docs/api-reference/file-conventions/page"> <ExternalLink href="https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams">
Docs Docs
</ExternalLink> </ExternalLink>
</div> </div>
......
...@@ -19,7 +19,7 @@ export default function Page() { ...@@ -19,7 +19,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/data-fetching/fetching#static-data"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssg"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssg">
......
...@@ -17,7 +17,7 @@ export default function Page() { ...@@ -17,7 +17,7 @@ export default function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/data-fetching/fetching#dynamic-data"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/rendering/server-components#opting-out-of-data-caching">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssr"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssr">
......
...@@ -30,8 +30,8 @@ export function AddToCart({ initialCartCount }: { initialCartCount: number }) { ...@@ -30,8 +30,8 @@ export function AddToCart({ initialCartCount }: { initialCartCount: number }) {
// losing client-side browser or React state. // losing client-side browser or React state.
router.refresh() router.refresh()
// We're working on more fine-grained data mutation and revalidation: // We've done more fine-grained data mutation and revalidation:
// https://beta.nextjs.org/docs/data-fetching/mutating // https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations
}) })
} }
......
...@@ -26,7 +26,7 @@ export default async function Page() { ...@@ -26,7 +26,7 @@ export default async function Page() {
</ul> </ul>
<div className="flex gap-2"> <div className="flex gap-2">
<ExternalLink href="https://beta.nextjs.org/docs/data-fetching/streaming-and-suspense"> <ExternalLink href="https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming">
Docs Docs
</ExternalLink> </ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/streaming"> <ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/streaming">
......
...@@ -42,7 +42,7 @@ export type { ...@@ -42,7 +42,7 @@ export type {
/** /**
* Stub route type for typedRoutes before `next dev` or `next build` is run * 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 * @example
* ```ts * ```ts
* import type { Route } from 'next' * import type { Route } from 'next'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment