📌 📄 内容摘要:
三七 (@sanqi) 在 为 Astro 静态博客添加后端,实现web编辑、发布 中发帖
效果展示
管理页
[1226161344.avif]
编辑页
[1226161335.avif]
1、相关项目
decap-cms: 原名 netlify-cms ,Netlify 开发的,基于 Git 的静态页面内容管理系统,需要托管在 Netlify。
astro-decap-cms-oauth:为 astro 添加 decap-cms,并且脱离 Netlify,使用 github oauth 认证。
2、 安装部署
1、安装 astro-decap-cms-oauth
npx astro add astro-decap-cms-oauth
2、 配置config.yml
新建public/admin/config.yml,这是 decap-cms 的配置文件
▶ config.yml
3、安装 vercel SSR(服务器端渲染)
pnpm install @astrojs/...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/314945/1 ─────────────────────────────
📢 来源:LINUX DO