Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
0b1ef7cb
Unverified
Commit
0b1ef7cb
authored
Feb 05, 2020
by
Andy
Committed by
GitHub
Feb 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust README of example (#10426)
parent
c8e5f925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
README.md
examples/with-zones/README.md
+8
-11
No files found.
examples/with-zones/README.md
View file @
0b1ef7cb
...
@@ -31,21 +31,15 @@ cd with-zones
...
@@ -31,21 +31,15 @@ cd with-zones
## Notes
## Notes
In this example, we have two apps: 'home' and 'blog'. We'll start both apps with
[
Now
](
https://zeit.co/now
)
:
In this example, we have two apps: 'home' and 'blog'. You can start each app separately, for example:
```
bash
now dev
```
Then, you can visit
<http://localhost:3000>
and develop for both apps as a single app.
You can also start the apps separately, for example:
```
bash
```
bash
cd
blog
cd
blog
yarn dev
yarn dev
```
```
Then, you can visit
<http://localhost:3000>
and develop your app.
## Special Notes
## Special Notes
-
All pages should be unique across zones. For example, the 'home' app should not have a
`pages/blog/index.js`
page.
-
All pages should be unique across zones. For example, the 'home' app should not have a
`pages/blog/index.js`
page.
...
@@ -55,8 +49,11 @@ yarn dev
...
@@ -55,8 +49,11 @@ yarn dev
## Production Deployment
## Production Deployment
We only need to run
`now
`
, the same
`now.json`
used for development will be used for the deployment
:
We only need to run
`now
<app>`
, to deploy the app
:
```
bash
```
bash
now
now blog
now home
```
```
> The rewrite destination in your `now.json` file in the `home` app must be adjusted to point to your deployment.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment