Skip to content

Commit

Permalink
Docs: Replace "twitter.com" to "x.com" (#65917)
Browse files Browse the repository at this point in the history
### 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>
  • Loading branch information
ryohidaka and samcx committed May 18, 2024
1 parent c0b3f43 commit 6a80f2b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. `\$`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion docs/05-community/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
12 changes: 6 additions & 6 deletions packages/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

---

Expand Down

0 comments on commit 6a80f2b

Please sign in to comment.