Skip to content

Commit d1c1612

Browse files
authored
Update instances of Now to Vercel where applicable (vercel#13760)
This pull request renames various instances of `now` to `vercel` etc. in order to match content that's being updated on the Vercel platform.
1 parent 33d4423 commit d1c1612

File tree

20 files changed

+11
-11
lines changed

20 files changed

+11
-11
lines changed

docs/advanced-features/multi-zones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ There are no special zones related APIs. You only need to do following:
2727

2828
You can merge zones using any HTTP proxy.
2929

30-
For [Vercel](https://vercel.com/now), you can use a single `now.json` to deploy both apps. It allows you to define routing routes for multiple apps like below:
30+
For [Vercel](https://vercel.com/), you can use a single `vercel.json` to deploy both apps. It allows you to define routing routes for multiple apps like below:
3131

3232
```json
3333
{

docs/upgrading.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ description: Learn how to upgrade Next.js.
1010

1111
#### Production Deployment on Vercel
1212

13-
If you previously configured `routes` in your `now.json` file for dynamic routes, these rules can be removed when leveraging Next.js 9's new [Dynamic Routing feature](https://nextjs.org/docs/routing/dynamic-routes).
13+
If you previously configured `routes` in your `vercel.json` file for dynamic routes, these rules can be removed when leveraging Next.js 9's new [Dynamic Routing feature](https://nextjs.org/docs/routing/dynamic-routes).
1414

15-
Next.js 9's dynamic routes are **automatically configured on [Now](https://vercel.com/now)** and do not require any `now.json` customization.
15+
Next.js 9's dynamic routes are **automatically configured on [Vercel](https://vercel.com/)** and do not require any `vercel.json` customization.
1616

1717
You can read more about [Dynamic Routing here](https://nextjs.org/docs/routing/dynamic-routes).
1818

errors/head-build-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ The deployment was generated incorrectly or the server was overloaded at the tim
66

77
#### Possible Ways to Fix It
88

9-
Please make sure you are using the latest version of the `@now/next` builder in your `now.json`.
9+
Please make sure you are using the latest version of the `@vercel/next` builder in your `vercel.json`.
1010
If this error persists, please file a bug report.

examples/auth0/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ POST_LOGOUT_REDIRECT_URI=http://localhost:3000/
4848

4949
### Hosting on Vercel
5050

51-
When deploying this example to Vercel you'll want to update the `now.json` configuration file.
51+
When deploying this example to Vercel you'll want to update the `vercel.json` configuration file.
5252

5353
```json
5454
{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/with-iron-session/lib/session.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { withIronSession } from 'next-iron-session'
33

44
export default function withSession(handler) {
55
return withIronSession(handler, {
6-
// The password in this example is in plain text (inside `now.json`) for ease of deployment and understanding.
6+
// The password in this example is in plain text (inside `vercel.json`) for ease of deployment and understanding.
77
// ⚠️ Do not reuse the same password, create a different password for you and store it in a secret management system
88
// Example for Vercel: https://vercel.com/docs/v2/serverless-functions/env-and-secrets
99
password: process.env.SECRET_COOKIE_PASSWORD,
1010
cookieName: 'next.js/examples/with-iron-session',
1111
cookieOptions: {
12-
// the next line allows to use the session in non-https environements like
12+
// the next line allows to use the session in non-https environments like
1313
// Next.js dev mode (http://localhost:3000)
1414
secure: process.env.NODE_ENV === 'production' ? true : false,
1515
},

examples/with-now-env/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ npm install
3131
yarn
3232
```
3333

34-
Start the development server with [now](https://vercel.com/now) ([download](https://vercel.com/download)):
34+
Start the development server with [Vercel](https://vercel.com/) ([download](https://vercel.com/download)):
3535

3636
```bash
37-
now dev
37+
vercel dev
3838
```
3939

4040
Deploy it to the cloud with [Vercel](https://vercel.com/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
4141

42-
Keep in mind that in order to deploy the app to Vercel the env [secrets](https://vercel.com/docs/getting-started/secrets) defined in `now.json` should be listed in your account.
42+
Keep in mind that in order to deploy the app to Vercel the env [secrets](https://vercel.com/docs/getting-started/secrets) defined in `verel.json` should be listed in your account.
File renamed without changes.
File renamed without changes.

examples/with-zones/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ With Next.js you can use multiple apps as a single app using it's [multi-zones f
44

55
- All pages should be unique across zones. For example, the `home` app should not have a `pages/blog/index.js` page.
66
- The `blog` app sets `assetPrefix` so that generated JS bundles are within the `/blog` subfolder.
7-
- To also support the plain `next dev` scenario, `assetPrefix` is set dynamically based on the `BUILDING_FOR_NOW` environment variable, see [`now.json`](now.json) and [`blog/next.config.js`](blog/next.config.js).
7+
- To also support the plain `next dev` scenario, `assetPrefix` is set dynamically based on the `BUILDING_FOR_NOW` environment variable, see [`vercel.json`](vercel.json) and [`blog/next.config.js`](blog/next.config.js).
88
- Images and other `/static` assets have to be prefixed manually, e.g., `` <img src={`${process.env.ASSET_PREFIX}/static/image.png`} /> ``, see [`blog/pages/blog/index.js`](blog/pages/blog/index.js).
99

1010
## Deploy your own
File renamed without changes.

0 commit comments

Comments
 (0)