Cloudflare Pages

Cloudflare Pages 是什么?

Cloudflare Pages 是一个使用 JAMstack 的网站部署平台,和 GitHub Pages 类似,都是一个静态站点部署平台。

Cloudflare Pages is a JAMstack platform for frontend developers to collaborate and deploy websites.

Cloudflare Pages is currently in open beta.

来自Cloudflare Pages 官网

JAMstack 是什么?

JAMstack 最开始是 JavaScript、API、Markup 技术栈的一个缩写,由 Mathias Biilmann 提出(感觉就是为了推销 Netlify 服务的 🤔),当然现在已经不止于此了。

A modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup

Mathias Biilmann (CEO & Co-founder of Netlify)

按照官网介绍,现在 JAMstack 是新一代的网站架构,通过预渲染和可重用的 API,使其同时拥有静态和动态站点的优势。

Jamstack is the new standard architecture for the web. Using Git workflows and modern build tools, pre-rendered content is served to a CDN and made dynamic through APIs and serverless functions. Technologies in the stack include JavaScript frameworks, Static Site Generators, Headless CMSs, and CDNs.

Jamstack 官网


登录后绑定你的GitHub账户,然后授予权限,权限全给或者只给你的GitHub Pages仓库都可

然后随便输入个project name项目名称,不可用中文,保持默认的GitHub仓库名也可

framework preset选择None,因为GitHub里是已经渲染好的静态网站了,所以build command构建命令和build output directory也都空着就行,下面的Path也空着即可,然后点击Save and Deploy



Settings设置中还可以便捷的开启Access policyWeb Analytics十分贴心


(本站已从GitHub Pages迁移到Cloudflare Pages)