Skip to content

Commit

Permalink
Remove builds from examples (vercel#10417)
Browse files Browse the repository at this point in the history
* Remove `builds` from examples

* Fix with-zones example

* Run prettier on now.json
  • Loading branch information
AndyBitz authored and chibicode committed Feb 11, 2020
1 parent 39b0be9 commit 7929226
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 40 deletions.
2 changes: 0 additions & 2 deletions 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/(?<page>[^/]+)$", "dest": "/blog?page=$page" }
Expand Down
7 changes: 0 additions & 7 deletions 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",
Expand Down
2 changes: 2 additions & 0 deletions examples/with-stencil/README.md
Expand Up @@ -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.
Expand Down
5 changes: 0 additions & 5 deletions examples/with-stencil/now.json

This file was deleted.

2 changes: 2 additions & 0 deletions examples/with-yarn-workspaces/README.md
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions examples/with-yarn-workspaces/now.json

This file was deleted.

2 changes: 2 additions & 0 deletions examples/with-zones/blog/.gitignore
@@ -1,2 +1,4 @@
.next
node_modules

.now
13 changes: 13 additions & 0 deletions examples/with-zones/blog/now.json
@@ -0,0 +1,13 @@
{
"build": {
"env": {
"BUILDING_FOR_NOW": "true"
}
},
"rewrites": [
{
"source": "/blog/_next$1",
"destination": "/_next$1"
}
]
}
2 changes: 2 additions & 0 deletions examples/with-zones/home/.gitignore
@@ -1,2 +1,4 @@
.next
node_modules

.now
8 changes: 8 additions & 0 deletions examples/with-zones/home/now.json
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/blog(.*)",
"destination": "https://with-zones-blog.now.sh$1"
}
]
}
18 changes: 0 additions & 18 deletions examples/with-zones/now.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/z-experimental-next-news/now.json

This file was deleted.

0 comments on commit 7929226

Please sign in to comment.