mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-15 11:51:39 +00:00
Add README
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
---
|
||||
title: "DPS: Develop, Preview, Ship"
|
||||
date: "2020-01-02"
|
||||
---
|
||||
|
||||
[ZEIT Now](https://zeit.co/) supports the **DPS** workflow: **D**evelop, **P**review, and **S**hip:
|
||||
|
||||
- **Develop**: Write code in Next.js. Keep the development server running and take advantage of its hot code reloading feature.
|
||||
- **Preview**: Every time you push changes to a branch on GitHub / GitLab / BitBucket, ZEIT Now automatically creates a new deployment with a unique URL.
|
||||
- **Ship**: When you’re ready to ship, merge the pull request to your default branch (e.g. `master`). ZEIT Now will automatically create a production deployment.
|
||||
|
||||
By using the DPS workflow, in addition to doing code reviews, you can do *deployment previews*. Each deployment creates a unique URL that can be shared or used for integration tests.
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: "Two Forms of Pre-rendering"
|
||||
date: "2020-01-01"
|
||||
---
|
||||
|
||||
[Next.js](https://nextjs.org/) has two forms of pre-rendering: **Static Generation** and **Server-side Rendering**. The difference is in **when** it generates the HTML for a page.
|
||||
|
||||
- **Static Generation (Recommended)**: The HTML is generated at **build time** and will be reused on each request.
|
||||
- **Server-side Rendering**: The HTML is generated on **each request**.
|
||||
|
||||
Importantly, Next.js lets you **choose** which pre-rendering form you'd like to use for each page. You can create a "hybrid" Next.js app by using Static Generation for most pages and using Server-side Rendering for others.
|
||||
Reference in New Issue
Block a user