VPS上用NotionNext搭建Notion博客
技术分享|2023-9-6|最后更新: 2023-10-27
type
status
date
slug
summary
tags
category
icon
password
order
官网有详细说明了 我这是额外补充的

默认使用16版本的nodejs

创建一个service用于保证nodejs运行

 

git拉取NotionNext并打包写入环境变量及运行

Cloudflare缓存配置

全部缓存即可,NextJS后端的接口数据,各个页面都会缓存,不然请求Notion接口拉取数据还是慢点的,浏览器调试工具查看页面请求头部Cf-Cache-Status:Hit即为生效
notion image
服务器初始操作&环境部署Grafana&Prometheus&NodeExporter监控服务器