Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove builds from examples #10417

Merged
merged 4 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/blog-starter/now.json
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.next
node_modules

.now
13 changes: 13 additions & 0 deletions examples/with-zones/blog/now.json
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.next
node_modules

.now
8 changes: 8 additions & 0 deletions examples/with-zones/home/now.json
Original file line number Diff line number Diff line change
@@ -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.