diff --git a/docs/advanced-features/multi-zones.md b/docs/advanced-features/multi-zones.md index 722f185870..c600db1ccd 100644 --- a/docs/advanced-features/multi-zones.md +++ b/docs/advanced-features/multi-zones.md @@ -27,7 +27,7 @@ There are no special zones related APIs. You only need to do following: You can merge zones using any HTTP proxy. -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: +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: ```json { diff --git a/docs/upgrading.md b/docs/upgrading.md index 9b3b16fa9d..aa8e4819d1 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -10,9 +10,9 @@ description: Learn how to upgrade Next.js. #### Production Deployment on Vercel -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). +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). -Next.js 9's dynamic routes are **automatically configured on [Now](https://vercel.com/now)** and do not require any `now.json` customization. +Next.js 9's dynamic routes are **automatically configured on [Vercel](https://vercel.com/)** and do not require any `vercel.json` customization. You can read more about [Dynamic Routing here](https://nextjs.org/docs/routing/dynamic-routes). diff --git a/errors/head-build-id.md b/errors/head-build-id.md index f242ae413a..58618aaf55 100644 --- a/errors/head-build-id.md +++ b/errors/head-build-id.md @@ -6,5 +6,5 @@ The deployment was generated incorrectly or the server was overloaded at the tim #### Possible Ways to Fix It -Please make sure you are using the latest version of the `@now/next` builder in your `now.json`. +Please make sure you are using the latest version of the `@vercel/next` builder in your `vercel.json`. If this error persists, please file a bug report. diff --git a/examples/auth0/README.md b/examples/auth0/README.md index 0c68513820..02f9d0df46 100644 --- a/examples/auth0/README.md +++ b/examples/auth0/README.md @@ -48,7 +48,7 @@ POST_LOGOUT_REDIRECT_URI=http://localhost:3000/ ### Hosting on Vercel -When deploying this example to Vercel you'll want to update the `now.json` configuration file. +When deploying this example to Vercel you'll want to update the `vercel.json` configuration file. ```json { diff --git a/examples/auth0/now.json b/examples/auth0/vercel.json similarity index 100% rename from examples/auth0/now.json rename to examples/auth0/vercel.json diff --git a/examples/cms-contentful/now.json b/examples/cms-contentful/vercel.json similarity index 100% rename from examples/cms-contentful/now.json rename to examples/cms-contentful/vercel.json diff --git a/examples/cms-datocms/now.json b/examples/cms-datocms/vercel.json similarity index 100% rename from examples/cms-datocms/now.json rename to examples/cms-datocms/vercel.json diff --git a/examples/cms-prismic/now.json b/examples/cms-prismic/vercel.json similarity index 100% rename from examples/cms-prismic/now.json rename to examples/cms-prismic/vercel.json diff --git a/examples/cms-sanity/now.json b/examples/cms-sanity/vercel.json similarity index 100% rename from examples/cms-sanity/now.json rename to examples/cms-sanity/vercel.json diff --git a/examples/cms-takeshape/now.json b/examples/cms-takeshape/vercel.json similarity index 100% rename from examples/cms-takeshape/now.json rename to examples/cms-takeshape/vercel.json diff --git a/examples/with-cookie-auth-fauna/now.json b/examples/with-cookie-auth-fauna/vercel.json similarity index 100% rename from examples/with-cookie-auth-fauna/now.json rename to examples/with-cookie-auth-fauna/vercel.json diff --git a/examples/with-firebase/now.json b/examples/with-firebase/vercel.json similarity index 100% rename from examples/with-firebase/now.json rename to examples/with-firebase/vercel.json diff --git a/examples/with-iron-session/lib/session.js b/examples/with-iron-session/lib/session.js index 2393c7223c..f6b28598f9 100644 --- a/examples/with-iron-session/lib/session.js +++ b/examples/with-iron-session/lib/session.js @@ -3,13 +3,13 @@ import { withIronSession } from 'next-iron-session' export default function withSession(handler) { return withIronSession(handler, { - // The password in this example is in plain text (inside `now.json`) for ease of deployment and understanding. + // The password in this example is in plain text (inside `vercel.json`) for ease of deployment and understanding. // ⚠️ Do not reuse the same password, create a different password for you and store it in a secret management system // Example for Vercel: https://vercel.com/docs/v2/serverless-functions/env-and-secrets password: process.env.SECRET_COOKIE_PASSWORD, cookieName: 'next.js/examples/with-iron-session', cookieOptions: { - // the next line allows to use the session in non-https environements like + // the next line allows to use the session in non-https environments like // Next.js dev mode (http://localhost:3000) secure: process.env.NODE_ENV === 'production' ? true : false, }, diff --git a/examples/with-iron-session/now.json b/examples/with-iron-session/vercel.json similarity index 100% rename from examples/with-iron-session/now.json rename to examples/with-iron-session/vercel.json diff --git a/examples/with-now-env/README.md b/examples/with-now-env/README.md index 44bec57632..931c6346f8 100644 --- a/examples/with-now-env/README.md +++ b/examples/with-now-env/README.md @@ -31,12 +31,12 @@ npm install yarn ``` -Start the development server with [now](https://vercel.com/now) ([download](https://vercel.com/download)): +Start the development server with [Vercel](https://vercel.com/) ([download](https://vercel.com/download)): ```bash -now dev +vercel dev ``` 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)). -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. +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. diff --git a/examples/with-now-env/now.json b/examples/with-now-env/vercel.json similarity index 100% rename from examples/with-now-env/now.json rename to examples/with-now-env/vercel.json diff --git a/examples/with-userbase/now.json b/examples/with-userbase/vercel.json similarity index 100% rename from examples/with-userbase/now.json rename to examples/with-userbase/vercel.json diff --git a/examples/with-yarn-workspaces/now.json b/examples/with-yarn-workspaces/vercel.json similarity index 100% rename from examples/with-yarn-workspaces/now.json rename to examples/with-yarn-workspaces/vercel.json diff --git a/examples/with-zones/README.md b/examples/with-zones/README.md index 4eec124120..b53d021c2b 100644 --- a/examples/with-zones/README.md +++ b/examples/with-zones/README.md @@ -4,7 +4,7 @@ With Next.js you can use multiple apps as a single app using it's [multi-zones f - All pages should be unique across zones. For example, the `home` app should not have a `pages/blog/index.js` page. - The `blog` app sets `assetPrefix` so that generated JS bundles are within the `/blog` subfolder. - - 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). + - 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). - Images and other `/static` assets have to be prefixed manually, e.g., `` ``, see [`blog/pages/blog/index.js`](blog/pages/blog/index.js). ## Deploy your own diff --git a/examples/with-zones/now.json b/examples/with-zones/vercel.json similarity index 100% rename from examples/with-zones/now.json rename to examples/with-zones/vercel.json