Post on: 2023-3-13Last edited: 2023-7-20Words 00 min

category
tags
type
status
slug
date
summary
icon
password

前言

参考haixin的文章《NotionNext建站-cloudflare版》,这里做了优化
部署效果预览
CloudFlare版本是静态导出的,不支持实时更新文章,每次需要手动部署。

开始

访问CloudFlarePage
 

创建项目

notion image
  1. 直接连接git
    1. notion image
  1. 导入项目
    1. notion image
  1. 选择分支
    1. 分支选择 deploy/cloudflare-support
      notion image

      配置参数

      来到页面下方的构建设置:
      • 构建命令填
        • 输出根目录 out
        notion image

    环境变量

    配置效果如下
    notion image
    配置说明
    变量名称
    NODE_VERSION
    16
    VERCEL_ENV
    production
    NOTION_PAGE_ID
    {您的Notion页面id}
    最后点击保存并部署即可。

    完成部署

    页面中心会显示您的访问域名
    notion image

    绑定域名

    项目主页找到自定义域,找到下方设置自定义域
    notion image
    填写域名并继续
    notion image
    按照要求在域名服务商后台配置一个CNAME转发
    notion image
    • CNAME转发示例
      • notion image
    • 点击下方的激活域,由于我使用的域名商本身就是cloudflare,故此步骤只需几秒即可完成验证。
      • notion image

    Loading...
    ChatGPT4体验-程序员如何年入千万?

    ChatGPT4体验-程序员如何年入千万?

    如何使用ChatGPT4?程序员年入百万、千万?ChatGPT请给我至少3个切实可行的,门槛低的,比较适合程序员的,能在一年内赚到1千万的项目。并附上详细的执行步骤。


    NotionNext二级菜单使用说明

    NotionNext二级菜单使用说明

    NotionNext 3.13.0上线,支持更灵活的菜单配置


    Announcement