diff --git a/examples/blog-starter/now.json b/examples/blog-starter/now.json index e9ab941a260121a..e2a1eb024cd292d 100644 --- a/examples/blog-starter/now.json +++ b/examples/blog-starter/now.json @@ -1,8 +1,6 @@ { - "version": 2, "name": "nextjs-blog-starter", "alias": ["nextjs-blog-starter.now.sh"], - "builds": [{ "src": "package.json", "use": "@now/next" }], "routes": [ { "src": "/feed.json", "dest": "/_next/static/feed.json" }, { "src": "/blog/(?[^/]+)$", "dest": "/blog?page=$page" } diff --git a/examples/with-now-env/now.json b/examples/with-now-env/now.json index f04eefdb3c0629b..1305f0d9a0d26f3 100644 --- a/examples/with-now-env/now.json +++ b/examples/with-now-env/now.json @@ -1,11 +1,4 @@ { - "version": 2, - "builds": [ - { - "src": "package.json", - "use": "@now/next" - } - ], "build": { "env": { "SECRET": "@my-secret-key", diff --git a/examples/with-stencil/README.md b/examples/with-stencil/README.md index ac2b873e51736b8..ae0be5300067218 100644 --- a/examples/with-stencil/README.md +++ b/examples/with-stencil/README.md @@ -47,6 +47,8 @@ Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit. now ``` +> Choose `packages/web-app` as root directory when deploying. + ## The idea behind the example Stencil is a compiler that generates Web Components (more specifically, Custom Elements). Stencil combines the best concepts of the most popular frameworks into a simple build-time tool. diff --git a/examples/with-stencil/now.json b/examples/with-stencil/now.json deleted file mode 100644 index 985a1b01d4007ef..000000000000000 --- a/examples/with-stencil/now.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 2, - "builds": [{ "src": "packages/web-app/package.json", "use": "@now/next" }], - "routes": [{ "src": "(.*)", "dest": "packages/web-app$1", "continue": true }] -} diff --git a/examples/with-yarn-workspaces/README.md b/examples/with-yarn-workspaces/README.md index 15e1d756fbb0cb9..c77eba540103d75 100644 --- a/examples/with-yarn-workspaces/README.md +++ b/examples/with-yarn-workspaces/README.md @@ -48,6 +48,8 @@ Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit. now ``` +> Choose `packages/web-app` as root directory when deploying. + ## Useful Links - [Documentation](https://yarnpkg.com/en/docs/workspaces) diff --git a/examples/with-yarn-workspaces/now.json b/examples/with-yarn-workspaces/now.json deleted file mode 100644 index 985a1b01d4007ef..000000000000000 --- a/examples/with-yarn-workspaces/now.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 2, - "builds": [{ "src": "packages/web-app/package.json", "use": "@now/next" }], - "routes": [{ "src": "(.*)", "dest": "packages/web-app$1", "continue": true }] -} diff --git a/examples/with-zones/blog/.gitignore b/examples/with-zones/blog/.gitignore index f74c78183c91794..e54e38fa532b362 100644 --- a/examples/with-zones/blog/.gitignore +++ b/examples/with-zones/blog/.gitignore @@ -1,2 +1,4 @@ .next node_modules + +.now \ No newline at end of file diff --git a/examples/with-zones/blog/now.json b/examples/with-zones/blog/now.json new file mode 100644 index 000000000000000..9dcd887d881d873 --- /dev/null +++ b/examples/with-zones/blog/now.json @@ -0,0 +1,13 @@ +{ + "build": { + "env": { + "BUILDING_FOR_NOW": "true" + } + }, + "rewrites": [ + { + "source": "/blog/_next$1", + "destination": "/_next$1" + } + ] +} diff --git a/examples/with-zones/home/.gitignore b/examples/with-zones/home/.gitignore index f74c78183c91794..e54e38fa532b362 100644 --- a/examples/with-zones/home/.gitignore +++ b/examples/with-zones/home/.gitignore @@ -1,2 +1,4 @@ .next node_modules + +.now \ No newline at end of file diff --git a/examples/with-zones/home/now.json b/examples/with-zones/home/now.json new file mode 100644 index 000000000000000..7981357aa4e9b8d --- /dev/null +++ b/examples/with-zones/home/now.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/blog(.*)", + "destination": "https://with-zones-blog.now.sh$1" + } + ] +} diff --git a/examples/with-zones/now.json b/examples/with-zones/now.json deleted file mode 100644 index 590167dd6c7ab68..000000000000000 --- a/examples/with-zones/now.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "with-zones", - "version": 2, - "builds": [ - { "src": "blog/next.config.js", "use": "@now/next" }, - { "src": "home/next.config.js", "use": "@now/next" } - ], - "routes": [ - { "src": "/blog/(_next|static)(.*)" }, - { "src": "/blog(.*)", "dest": "blog/blog$1", "continue": true }, - { "src": "(?!/?blog)(.*)", "dest": "home$1", "continue": true } - ], - "build": { - "env": { - "BUILDING_FOR_NOW": "true" - } - } -} diff --git a/examples/z-experimental-next-news/now.json b/examples/z-experimental-next-news/now.json deleted file mode 100644 index 404c3ff46d5d78e..000000000000000 --- a/examples/z-experimental-next-news/now.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "builds": [{ "src": "package.json", "use": "@now/next@canary" }] -}