Skip to content

Commit

Permalink
chore: Remove 'beta.' Subdomain from beta.nextjs.org Links (#55924)
Browse files Browse the repository at this point in the history
**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.
  • Loading branch information
AhmedBaset committed Sep 26, 2023
1 parent 22380df commit 379f2d8
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion examples/with-storybook/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Home() {

<div className={styles.grid}>
<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}
target="_blank"
rel="noopener noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/error-handling/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Page() {
<div className="flex gap-2">
<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/error-handling">
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/hooks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/hooks">
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/isr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/isr">
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/layouts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/layouts">
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/loading/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/loading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions examples/with-turbopack/app/not-found/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function Page() {
<ul>
<li>
<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
</Link>
</code>{' '}
file is used to render UI when the{' '}
<code>
<Link href="https://beta.nextjs.org/docs/api-reference/notfound">
<Link href="https://nextjs.org/docs/app/api-reference/functions/not-found">
notFound()
</Link>
</code>{' '}
Expand All @@ -41,7 +41,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>

Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/route-groups/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/route-groups">
Expand Down
4 changes: 2 additions & 2 deletions examples/with-turbopack/app/snippets/search-params/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default async function Page({ searchParams }: { searchParams: any }) {
</Suspense>
</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
</ExternalLink>
</div>
Expand Down Expand Up @@ -95,7 +95,7 @@ export default async function Page({ searchParams }: { searchParams: any }) {
</div>
</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
</ExternalLink>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/ssg/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssg">
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/ssr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/ssr">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/app/streaming/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function Page() {
</ul>

<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
</ExternalLink>
<ExternalLink href="https://github.com/vercel/app-playground/tree/main/app/streaming">
Expand Down
2 changes: 1 addition & 1 deletion packages/next/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 379f2d8

Please sign in to comment.