Skip to content

NextJs-Pre-rendering #154

Open
Open
@yaofly2012

Description

@yaofly2012

Pre-rendering

特指Pages组件pre-rendering。

方案

  1. SSG
    SSG固然很好(built once and served by CDN),但是很难有“一直不变”的内容(最常见的就是帮助文档吧),所以SSG + CSR 倒也是一种方案。

  2. SSR

Importantly, Next.js lets you choose which pre-rendering form you'd like to use for each page.

就是通过Page组件文件里声明不同的方法来choose预渲染方式。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions