Docs: Replace "twitter.com" to "x.com" (#65917)

### What?
Replace `twitter.com` links in the docs with `x.com`

### Why?
Now that Twitter (twitter.com) has officially moved to the x.com domain

### How?
- Replace the link, then click on the link to make sure there are no
problems

Closes NEXT-
Fixes #65916

---------

Co-authored-by: Sam Ko <sam@vercel.com>
This commit is contained in:
日高 凌 2024-05-18 14:49:49 +09:00 committed by GitHub
parent c0b3f430ed
commit 6a80f2b25d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -136,10 +136,10 @@ Next.js will automatically expand variables that use `$` to reference other vari
```txt filename=".env"
TWITTER_USER=nextjs
TWITTER_URL=https://twitter.com/$TWITTER_USER
TWITTER_URL=https://x.com/$TWITTER_USER
```
In the above example, `process.env.TWITTER_URL` would be set to `https://twitter.com/nextjs`.
In the above example, `process.env.TWITTER_URL` would be set to `https://x.com/nextjs`.
> **Good to know**: If you need to use variable with a `$` in the actual value, it needs to be escaped e.g. `\$`.

View file

@ -666,7 +666,7 @@ export const metadata = {
The Twitter specification is (surprisingly) used for more than just X (formerly known as Twitter).
Learn more about the [Twitter Card markup reference](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup).
Learn more about the [Twitter Card markup reference](https://developer.x.com/en/docs/twitter-for-websites/cards/overview/markup).
```jsx filename="layout.js | page.js"
export const metadata = {

View file

@ -24,7 +24,7 @@ If you have a question about Next.js, or want to help others, you're always welc
## Social Media
Follow Next.js on [Twitter](https://twitter.com/nextjs) for the latest updates, and subscribe to the [Vercel YouTube channel](https://www.youtube.com/@VercelHQ) for Next.js videos.
Follow Next.js on [Twitter](https://x.com/nextjs) for the latest updates, and subscribe to the [Vercel YouTube channel](https://www.youtube.com/@VercelHQ) for Next.js videos.
## Code of Conduct

View file

@ -54,4 +54,4 @@ For optimal accessibility when using a screen reader while reading the docs, we
## Join our Community
If you have questions about anything related to Next.js, you're always welcome to ask our community on [GitHub Discussions](https://github.com/vercel/next.js/discussions), [Discord](https://discord.com/invite/bUG2bvbtHy), [Twitter](https://twitter.com/nextjs), and [Reddit](https://www.reddit.com/r/nextjs).
If you have questions about anything related to Next.js, you're always welcome to ask our community on [GitHub Discussions](https://github.com/vercel/next.js/discussions), [Discord](https://discord.com/invite/bUG2bvbtHy), [Twitter](https://x.com/nextjs), and [Reddit](https://www.reddit.com/r/nextjs).

View file

@ -54,12 +54,12 @@ We have a list of **[good first issues](https://github.com/vercel/next.js/labels
A list of the original co-authors of Next.js that helped bring this amazing framework to life!
- Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens))
- Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa))
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg))
- Arunoda Susiripala ([@arunoda](https://twitter.com/arunoda))
- Tony Kovanen ([@tonykovanen](https://twitter.com/tonykovanen))
- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable))
- Tim Neutkens ([@timneutkens](https://x.com/timneutkens))
- Naoyuki Kanezawa ([@nkzawa](https://x.com/nkzawa))
- Guillermo Rauch ([@rauchg](https://x.com/rauchg))
- Arunoda Susiripala ([@arunoda](https://x.com/arunoda))
- Tony Kovanen ([@tonykovanen](https://x.com/tonykovanen))
- Dan Zajdband ([@impronunciable](https://x.com/impronunciable))
---