<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>NotionNext帮助手册</title>
        <link>https://docs.tangly1024.com/</link>
        <description>Notion开源、免费、快速建站</description>
        <lastBuildDate>Thu, 28 May 2026 04:46:03 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-US</language>
        <copyright>All rights reserved 2026, NotionNext</copyright>
        <item>
            <title><![CDATA[Vercel部署NotionNext]]></title>
            <link>https://docs.tangly1024.com/article/vercel-deploy-notion-next</link>
            <guid>https://docs.tangly1024.com/article/vercel-deploy-notion-next</guid>
            <pubDate>Fri, 10 Feb 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[使用 Vercel 免费部署 NotionNext：复制 Notion 模板、Fork 源代码、配置 NOTION_PAGE_ID，再一键部署站点，无需自购服务器。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-62bed0ccac5c4dc8b809d1349d8f6c1e"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-11c4ac94ced84f408ac2a9415ef0c7b7" data-id="11c4ac94ced84f408ac2a9415ef0c7b7"><span><div id="11c4ac94ced84f408ac2a9415ef0c7b7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#11c4ac94ced84f408ac2a9415ef0c7b7" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h2><div class="notion-text notion-block-2e5ec2c66f9b4a2b9acc27215323e336">按照本教程操作，你可以在 <a class="notion-link" href="https://tangly1024.com/article/vercel" target="_blank" rel="noopener noreferrer">Vercel</a> 上免费部署一个 <a class="notion-link" href="https://docs.tangly1024.com/about" target="_blank" rel="noopener noreferrer">NotionNext</a> 博客。</div><div class="notion-callout notion-teal_background_co notion-block-0f3e4bd52d9049d9ac812e23baf181a0"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="❓">❓</span></div><div class="notion-callout-text"><div class="notion-text notion-block-7f15b17b529a4fb38177c77272a6cf6b"><a class="notion-link" href="https://docs.tangly1024.com/about" target="_blank" rel="noopener noreferrer">NotionNext</a> 是一个完全开源、免费的建站脚本，可以将你的 <a class="notion-link" href="https://blog.tangly1024.com/article/notion" target="_blank" rel="noopener noreferrer">Notion</a> 笔记实时渲染成博客。

Vercel 是一个在线托管平台。对个人站点来说，免费版通常已经够用，因此你无需购买服务器，也可以搭建自己的网站。</div></div></div><div class="notion-text notion-block-23df93b9208b800eb403c2b26e84d5fd">站点效果预览：<a class="notion-link" href="https://preview.tangly1024.com/" target="_blank" rel="noopener noreferrer">https://preview.tangly1024.com/</a>。点击站点左下角图标，可以体验不同主题的切换效果：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-23df93b9208b80e7828ae95d05620e61"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:336px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f986077-cebf-46f9-af64-c90adaf86966%3Aimage.png?table=block&amp;id=23df93b9-208b-80e7-828a-e95d05620e61&amp;t=23df93b9-208b-80e7-828a-e95d05620e61" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-23df93b9208b8084a8fed01951bce777">想查看更多网站搭建效果，欢迎访问友情链接：<a class="notion-link" href="https://blog.tangly1024.com/links" target="_blank" rel="noopener noreferrer">https://blog.tangly1024.com/links</a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-23df93b9208b80adb9e0e4bca17dd06c" data-id="23df93b9208b80adb9e0e4bca17dd06c"><span><div id="23df93b9208b80adb9e0e4bca17dd06c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#23df93b9208b80adb9e0e4bca17dd06c" title="部署步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部署步骤</span></span></h3><div class="notion-text notion-block-9d2042799e5646af860830ea8355f2b8">部署站点主要分为三步：</div><ol start="1" class="notion-list notion-list-numbered notion-block-95bf67338bbf4af4815cd076f99b098d" style="list-style-type:decimal"><li>复制 Notion 模板</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-f2b8b6fefad948d884f9bf2efbf1faca" style="list-style-type:decimal"><li>Fork GitHub 源代码</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-8b747d2c3f0a409aa2587ea176ed8237" style="list-style-type:decimal"><li>在 Vercel 中配置并部署</li></ol><div class="notion-text notion-block-21ef8ec962544f88b4bcf6215572def2">这份部署文档已经过大量用户验证。如果你仍然无法完成独立部署，也可以考虑<a class="notion-link" href="https://docs.tangly1024.com/article/my-service" target="_blank" rel="noopener noreferrer">向我们求助</a>。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2f428c64621b4b80b5b33f25cea40108" data-id="2f428c64621b4b80b5b33f25cea40108"><span><div id="2f428c64621b4b80b5b33f25cea40108" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f428c64621b4b80b5b33f25cea40108" title="视频帮助"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">视频帮助</span></span></h3><div class="notion-text notion-block-3f7f3b3799664f84aa5b78a4d0dd5b27">我录制了一个 1 分 38 秒的简短视频，用来演示整体部署流程。具体操作仍以本文档为准。</div><figure class="notion-asset-wrapper notion-asset-wrapper-embed notion-block-1313c4e6ec5f428a90030918da2740c7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:391px"><iframe class="notion-asset-object-fit" src="https://player.bilibili.com/player.html?aid=913088616&amp;bvid=BV1fM4y1L7Qi&amp;cid=1203316294&amp;page=1&amp;spaceId=6c096b44-beb9-48ee-8f92-1efdde47f3a3" title="iframe embed" frameBorder="0" allowfullscreen="" loading="lazy" scrolling="auto"></iframe></div></figure><ul class="notion-list notion-list-disc notion-block-a5eb456995da4a6aba36e57c21782b22"><li>另外有Youtube网友也分享了部署的过程，可以参考</li><ul class="notion-list notion-list-disc notion-block-a5eb456995da4a6aba36e57c21782b22"><div class="notion-row"><a class="notion-bookmark notion-block-b8e79e78e60b433c937fab0c4f555968" href="https://www.youtube.com/watch?v=zWlPyDQCkrk" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">将您的Notion笔记变为博客站，所有文章的编写发布都只在您的Notion笔记中完成，小白也能快速地搭建自己的网站</div><div class="notion-bookmark-description">首先，借助NotionNext建站，所有文章的编写发布都只在您的Notion笔记中完成，Notion笔记支持在电脑与手机上随时访问；因此您无需登录任何第三方平台、或打开WordPress后台、或者通过写Git上传等繁琐的方式来发布文章。
其次，Notion 是一款将笔记、在线文档、知识库和任务管理无缝整合的「All-In-One」应用，它也是我一直在用、并且极力推荐的一款笔记软件
借助Notion灵活的排版以及便捷的写作体验，您不需要专门学习Markdown语法，也可以轻松随时随地写出调理清晰的文章，以便记录您的创意与灵感。站点数据完全保存在Notion笔记当中，您可以随时导出本地进行备份。
Notion AI
Notion集成了Open AI，能大大提升您的写作效率，这也是Notion作为笔记工具的理由之一。
最后，NotionNext 只是一个将您的笔记转成网站的小工具，并不是一个繁重的系统，之后还可以选择其他的工具和软件渲染您的笔记。

===============================
🔔订阅我的频道，第一时间通知您最新的更新!🔔
👉Subscribe: https://www.youtube.com/@maple_tech
===============================
chapter章节：
00:00 介绍
00:30 安装NotionNext
01:30 配置Github
01:48 配置Vercel
03:40 绑定自己的域名
04:35 把域名配置到cloudflare管理
06:32 效果演示

===============================
相关资源：
https://github.com/tangly1024/NotionNext
https://www.namesilo.com/
===============================
🔽 与我联系
Twitter: https://twitter.com/MapleNext
Telegram: https://t.me/+1UCf0K0yi4tiMDEx
===============================
#notion #博客 #建站</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwww.youtube.com%2Fs%2Fdesktop%2F85bdacdc%2Fimg%2Ffavicon_144x144.png?table=block&amp;id=b8e79e78-e60b-433c-937f-ab0c4f555968&amp;t=b8e79e78-e60b-433c-937f-ab0c4f555968" alt="将您的Notion笔记变为博客站，所有文章的编写发布都只在您的Notion笔记中完成，小白也能快速地搭建自己的网站" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.youtube.com/watch?v=zWlPyDQCkrk</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fi.ytimg.com%2Fvi%2FzWlPyDQCkrk%2Fmaxresdefault.jpg?table=block&amp;id=b8e79e78-e60b-433c-937f-ab0c4f555968&amp;t=b8e79e78-e60b-433c-937f-ab0c4f555968" alt="将您的Notion笔记变为博客站，所有文章的编写发布都只在您的Notion笔记中完成，小白也能快速地搭建自己的网站" loading="lazy" decoding="async"/></div></a></div><div class="notion-row"><a class="notion-bookmark notion-block-6d30d03e99d0473eba146120562e0f47" href="https://www.youtube.com/watch?v=AbI70b9KfXE" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">零基础入门NotionNext网站搭建、个人博客、网站快速搭建部署教程 | 无需编程教学 | All in one | 404实验室</div><div class="notion-bookmark-description">订阅频道▶https://www.youtube.com/channel/UCm84OFeAJCPqerpjCFOrVwg?sub_confirmation=1
博客▶https://404lab.cc/
TG群组▶https://bit.ly/404Lab
海豚湾▶https://bit.ly/3Y2DgBZ
接码平台▶https://bit.ly/3ryxig9</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwww.youtube.com%2Fs%2Fdesktop%2F85bdacdc%2Fimg%2Ffavicon_144x144.png?table=block&amp;id=6d30d03e-99d0-473e-ba14-6120562e0f47&amp;t=6d30d03e-99d0-473e-ba14-6120562e0f47" alt="零基础入门NotionNext网站搭建、个人博客、网站快速搭建部署教程 | 无需编程教学 | All in one | 404实验室" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.youtube.com/watch?v=AbI70b9KfXE</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fi.ytimg.com%2Fvi%2FAbI70b9KfXE%2Fmaxresdefault.jpg?table=block&amp;id=6d30d03e-99d0-473e-ba14-6120562e0f47&amp;t=6d30d03e-99d0-473e-ba14-6120562e0f47" alt="零基础入门NotionNext网站搭建、个人博客、网站快速搭建部署教程 | 无需编程教学 | All in one | 404实验室" loading="lazy" decoding="async"/></div></a></div></ul></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-98354df27d8645de8442ef71225aa3b0" data-id="98354df27d8645de8442ef71225aa3b0"><span><div id="98354df27d8645de8442ef71225aa3b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#98354df27d8645de8442ef71225aa3b0" title="一、创建您的Notion页面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、创建您的Notion页面</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-94a76d5f210843eb815eb4731541d76a" data-id="94a76d5f210843eb815eb4731541d76a"><span><div id="94a76d5f210843eb815eb4731541d76a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#94a76d5f210843eb815eb4731541d76a" title="复制模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">复制模板</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-cc34c403f3a74424a0645aab2acfa055" style="list-style-type:decimal"><li>请先注册登陆您的<a class="notion-link" href="https://www.notion.so/" target="_blank" rel="noopener noreferrer">Notion</a>账号。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1dc26767128d427f8c2ce63b9d32ec0d" style="list-style-type:decimal"><li>点击下方链接，打开模板</li><ol class="notion-list notion-list-numbered notion-block-1dc26767128d427f8c2ce63b9d32ec0d" style="list-style-type:lower-alpha"><div class="notion-row"><a class="notion-bookmark notion-block-e9ac84cce61b43bb88715f727059b884" href="https://tanghh.notion.site/02ab3b8678004aa69e9e415905ef32a5" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Notion Blog</div><div class="notion-bookmark-description">一个NotionNext搭建的博客</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwww.notion.so%2Ffront-static%2Flogo-ios.png?table=block&amp;id=e9ac84cc-e61b-43bb-8871-5f727059b884&amp;t=e9ac84cc-e61b-43bb-8871-5f727059b884" alt="Notion Blog" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://tanghh.notion.site/02ab3b8678004aa69e9e415905ef32a5</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://tanghh.notion.site/images/page-cover/nasa_robert_stewart_spacewalk_2.jpg?table=collection&amp;id=4379bc14-5d22-453b-a153-12639616fc01&amp;spaceId=6c096b44-beb9-48ee-8f92-1efdde47f3a3&amp;width=2000&amp;userId=&amp;cache=v2&amp;t=e9ac84cc-e61b-43bb-8871-5f727059b884" alt="Notion Blog" loading="lazy" decoding="async"/></div></a></div></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-d09acb78fc1148758d9c8f7788bd624a" style="list-style-type:decimal"><li>在右上角点击<b>Duplicate</b>复制模板，如图所示。点击后会将这个博客数据模板复制到您的笔记空间中。</li><ol class="notion-list notion-list-numbered notion-block-d09acb78fc1148758d9c8f7788bd624a" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-15646cce257046d08c70c56832db302b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F35421745-2316-47bf-a6ce-7cd1aeb3deb3%2FUntitled.png?table=block&amp;id=15646cce-2570-46d0-8c70-c56832db302b&amp;t=15646cce-2570-46d0-8c70-c56832db302b&amp;width=624&amp;cache=v2" alt="点击右上角的Duplicate，将模板复制到您的笔记中" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">点击右上角的Duplicate，将模板复制到您的笔记中</figcaption></div></figure></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-cbae3b6fac4546bbad1c4149c40f773e" data-id="cbae3b6fac4546bbad1c4149c40f773e"><span><div id="cbae3b6fac4546bbad1c4149c40f773e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cbae3b6fac4546bbad1c4149c40f773e" title="获取页面ID"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">获取页面ID</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-fd32b9fbf837469ea4631f973786b862" style="list-style-type:decimal"><li>在Notion笔记中：在页面右上角的菜单栏中，依次点击<b>Share</b>→<b>Published</b>→<b>Share To Web，</b>开启页面分享，获取<b>共享链接</b></li><ol class="notion-list notion-list-numbered notion-block-fd32b9fbf837469ea4631f973786b862" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-7df00f4a38a94ddd945bccd415b4acf9"><li>如下图所示，点击右上角 <b>Share ，</b>在弹出窗口中点击 <b>Publish </b>→ <b>Share to web</b>  (点击展开截图)</li><ul class="notion-list notion-list-disc notion-block-7df00f4a38a94ddd945bccd415b4acf9"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-586d2451f192449f93d0b7ce35e1e13d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1fc010fe-32a5-4934-947b-fb1e076735bd%2FUntitled.png?table=block&amp;id=586d2451-f192-449f-93d0-b7ce35e1e13d&amp;t=586d2451-f192-449f-93d0-b7ce35e1e13d&amp;width=528&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-f1056ab76b1148f894156c4cdb2feda5" style="list-style-type:decimal"><li>复制<b>页面ID</b></li><ol class="notion-list notion-list-numbered notion-block-f1056ab76b1148f894156c4cdb2feda5" style="list-style-type:lower-alpha"><div class="notion-text notion-block-320ff030d1904f269cd6519cbd8452c0">页面ID在您的共享链接中、域名中间的一串<b>32位字母与数字</b>。</div><ul class="notion-list notion-list-disc notion-block-80ba82081191462eb98d850006b41b24"><li>如下图所示：</li><ul class="notion-list notion-list-disc notion-block-80ba82081191462eb98d850006b41b24"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-7ae734b0fe2943baa7154aa3adea7c57"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:576px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6fd734be-198d-4764-8eb4-2a1755c5020b%2FUntitled.png?table=block&amp;id=7ae734b0-fe29-43ba-a715-4aa3adea7c57&amp;t=7ae734b0-fe29-43ba-a715-4aa3adea7c57&amp;width=576&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1280c95002234f9a800ccf966cfe30e7"><li>页面ID注意</li><ul class="notion-list notion-list-disc notion-block-1280c95002234f9a800ccf966cfe30e7"><div class="notion-callout notion-gray_background_co notion-block-6c66aaf8cc0d429b83820b38da41fb94"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="❓">❓</span></div><div class="notion-callout-text"><div class="notion-text notion-block-8cbc80b0f87d4c5bba4a6848fab621c2">👇以下我的<b>共享链接，</b>其中<span class="notion-red"><b>标红</b></span><b>加粗</b><span class="notion-inline-underscore">下划线</span>部分才是<span class="notion-red"><b>页面ID</b></span><span class="notion-red">！</span>要忽略<em><code class="notion-inline-code"><b>?</b></code></em><code class="notion-inline-code"><b>v=</b></code>后面的英文数字。</div><div class="notion-text notion-block-0343ef89426f4649be7acab288ed3437"><span class="notion-gray"><a class="notion-link" href="https://www.notion.so/tanghh/" target="_blank" rel="noopener noreferrer">https://www.notion.so/tanghh/</a></span><span class="notion-red"><b><span class="notion-inline-underscore">02ab3b8678004aa69e9e415905ef32a5</span></b></span><em><span class="notion-gray">?</span></em><span class="notion-gray">v=b7eb215720224ca5827bfaa5ef82cf2d</span><span class="notion-gray"><span class="notion-inline-underscore">
</span></span></div><div class="notion-text notion-block-f514da4494ee4d7d813ade55ff1e851a">👇我的<span class="notion-red"><b>页面ID </b></span>是
 <span class="notion-red"><b><span class="notion-inline-underscore">02ab3b8678004aa69e9e415905ef32a5</span></b></span></div></div></div><div class="notion-callout notion-teal_background_co notion-block-d02c1c0be4714f3eb753e99c74268da7"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="⚠️">⚠️</span></div><div class="notion-callout-text"><div class="notion-text notion-block-e9830bdea1164348b5af43a414cba656">新版的notion中，页面ID的格式可能会有一点不同，例如会把页面的标题也带上：
<a class="notion-link" href="https://www.notion.so/tanghh/Today-" target="_blank" rel="noopener noreferrer">https://www.notion.so/tanghh/Today-</a><code class="notion-inline-code">261c36d269a74acd97682af86d7bc9a0</code>?pvs=4 
但不变的是，页面 url 中的那串连续 32 位的字符串就是 id。</div></div></div><div class="notion-callout notion-yellow_background_co notion-block-67f9e4476def4f8784a9351d1b620e11"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="❓">❓</span></div><div class="notion-callout-text"><div class="notion-text notion-block-6c723d98fbe24683b29da67c955a1c89">请将您的<b>页面ID记录下来，</b>在步骤三会用到。</div></div></div></ul></ul></ol></ol><div class="notion-blank notion-block-31a18973aabd433d943a403e2e893807"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2f5b2261c48d4a608cb3dae473ff9c75" data-id="2f5b2261c48d4a608cb3dae473ff9c75"><span><div id="2f5b2261c48d4a608cb3dae473ff9c75" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f5b2261c48d4a608cb3dae473ff9c75" title="二、复制源代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、复制源代码</span></span></h2><div class="notion-callout notion-gray_background_co notion-block-6c265c273e0d437aae72b01e856a3f54"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-2fc2d668db264574936d09fe6837c315">注意，请不要使用qq邮箱等国内邮箱，<b>尽量使用hotmail或gmail等国际邮箱</b>，否则下一步登陆vercel后会提示账号被封禁。</div></div></div><ol start="1" class="notion-list notion-list-numbered notion-block-a6610a8a9c03424b9cce9b2ec2dc27f5" style="list-style-type:decimal"><li>请先注册并登陆<a class="notion-link" href="https://github.com/" target="_blank" rel="noopener noreferrer">Github账号</a>，</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-64ccd48985ae42bfa693833ff31d4fa1" style="list-style-type:decimal"><li>仅需点击下方链接，即可一键<b>Fork(复刻)</b>项目。</li><ol class="notion-list notion-list-numbered notion-block-64ccd48985ae42bfa693833ff31d4fa1" style="list-style-type:lower-alpha"><div class="notion-row"><a class="notion-bookmark notion-block-a6b50329bf454daab0ae6381fadad351" href="https://github.com/tangly1024/NotionNext/fork" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Build software better, together</div><div class="notion-bookmark-description">You can&#x27;t perform that action at this time. You signed in with another tab or window. You signed out in another tab or window. Reload to refresh your session. Reload to refresh your session.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fgithub.com%2Ffavicon.ico?table=block&amp;id=a6b50329-bf45-4daa-b0ae-6381fadad351&amp;t=a6b50329-bf45-4daa-b0ae-6381fadad351" alt="Build software better, together" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://github.com/tangly1024/NotionNext/fork</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fopen_graph%2Fgithub-logo.png?table=block&amp;id=a6b50329-bf45-4daa-b0ae-6381fadad351&amp;t=a6b50329-bf45-4daa-b0ae-6381fadad351" alt="Build software better, together" loading="lazy" decoding="async"/></div></a></div></ol></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3c1d5005e40949ad8febd23300393749" data-id="3c1d5005e40949ad8febd23300393749"><span><div id="3c1d5005e40949ad8febd23300393749" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3c1d5005e40949ad8febd23300393749" title="三、Vercel部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、Vercel部署</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-cb5306de82d6428ab5c00fc3d4919796" data-id="cb5306de82d6428ab5c00fc3d4919796"><span><div id="cb5306de82d6428ab5c00fc3d4919796" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cb5306de82d6428ab5c00fc3d4919796" title="准备账号"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">准备账号</span></span></h3><div class="notion-text notion-block-9a62c55cf930405eb832a9c5b872c3c5">注册登陆<a class="notion-link" href="https://vercel.com/" target="_blank" rel="noopener noreferrer">Vercel</a> ，这里推荐选择Github账号登录。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2585e4cb64364e74aadfd58fee9988d1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff7a4a831-4644-416c-911d-0c3cbc8216fb%2FUntitled.png?table=block&amp;id=2585e4cb-6436-4e74-aadf-d58fee9988d1&amp;t=2585e4cb-6436-4e74-aadf-d58fee9988d1&amp;width=624&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-1d4bb7d95d4640b7bbca6081e2d32be0"><summary>注册vercel账号可能遇到的问题</summary><div><div class="notion-text notion-block-0c76ff9f67bf43359732060a8482dcc0">若注册时提示 <code class="notion-inline-code">Error:This user account is blocked.Contact support@vercel.com for more information.</code></div><div class="notion-text notion-block-486dfcee0df1434a97e465e416209f58">这是由于 <code class="notion-inline-code">Vercel</code> 不支持大部分国内邮箱。可以将 <code class="notion-inline-code">github</code> 账号主邮箱改为 <code class="notion-inline-code">Gmail</code> 邮箱。</div><div class="notion-text notion-block-f4b2a47423f647548b7f28a784512f22"><b>但是</b>根据群友反应，将 <code class="notion-inline-code">github</code> 账号主邮箱切换为 <code class="notion-inline-code">Gmail</code> 以后，<code class="notion-inline-code">Vercel</code> 又会提示需要使用手机号码验证。然而 <code class="notion-inline-code">github</code> 并没有提供手机号码绑定的内容。</div><div class="notion-text notion-block-087bf77888634ae7be6ea21d8a685b85">综上，建议一开始注册 <code class="notion-inline-code">github</code> 账号时就使用 <code class="notion-inline-code">Gmail</code> 等国外邮箱进行注册。</div><ol start="1" class="notion-list notion-list-numbered notion-block-73b1619359de42aa9270323544d4975c" style="list-style-type:decimal"><li>国内访问<code class="notion-inline-code">Gmail</code>的方案：</li></ol><ul class="notion-list notion-list-disc notion-block-f9b866fea0664480a6a53cbdf1cbb52c"><li>直接使用 QQ 邮箱手机版，它提供 <code class="notion-inline-code">Gmail</code> 的访问路线，可以直接注册并使用。使用 <code class="notion-inline-code">Ghelper</code> 等浏览器插件访问。详情可以参考这篇文章：<a class="notion-link" href="https://github.com/Zfour/python_github_calendar_api/blob/master/posts/8c8df126" target="_blank" rel="noopener noreferrer">玩转 Microsoft-Edge</a></li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-e820fb5109f74620b27fb9e9a5ebec2a" style="list-style-type:decimal"><li>若是执着于当前<code class="notion-inline-code">Github</code>账号，可以参考以下方案进行尝试:</li></ol><ul class="notion-list notion-list-disc notion-block-8f338ee4eb4e47429fc549bf614c0026"><li>完成了 <code class="notion-inline-code">Gmail</code> 等国外邮箱的注册，打开 <a class="notion-link" href="https://github.com/settings/emails" target="_blank" rel="noopener noreferrer">github-&gt; 头像 -&gt;settings-&gt;Emails</a>&gt;Add email address, 并完成邮箱验证。在Add email address 下方的Primary email address 选项中将 <code class="notion-inline-code">Gmail</code> 设置为主邮箱。</li></ul></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-0d20ec6e511a410c80ce8f8fdac615a2" data-id="0d20ec6e511a410c80ce8f8fdac615a2"><span><div id="0d20ec6e511a410c80ce8f8fdac615a2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0d20ec6e511a410c80ce8f8fdac615a2" title="导入代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">导入代码</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-af1ead721b684a688458938008588858" style="list-style-type:decimal"><li>点击下方创建新项目</li><ol class="notion-list notion-list-numbered notion-block-af1ead721b684a688458938008588858" style="list-style-type:lower-alpha"><div class="notion-row"><a class="notion-bookmark notion-block-436c5c20dcc3495caf492d05811ff8fb" href="https://vercel.com/new" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">New Project - Vercel</div><div class="notion-bookmark-description">To deploy a new Project, import an existing Git Repository or get started with one of our Templates.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-text">https://vercel.com/new</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fvercel%2Ftwitter-card.png?table=block&amp;id=436c5c20-dcc3-495c-af49-2d05811ff8fb&amp;t=436c5c20-dcc3-495c-af49-2d05811ff8fb" alt="New Project - Vercel" loading="lazy" decoding="async"/></div></a></div></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3f449bca7bfe4fee8a528a69d85df456" style="list-style-type:decimal"><li>在代码仓库列表中选择导入<b>NotionNext</b></li><ol class="notion-list notion-list-numbered notion-block-3f449bca7bfe4fee8a528a69d85df456" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2405a6af740441dfb31e1f73909cf94c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F45b7938f-4824-40ae-ae4f-0237990c71a4%2FUntitled.png?table=block&amp;id=2405a6af-7404-41df-b31e-1f73909cf94c&amp;t=2405a6af-7404-41df-b31e-1f73909cf94c&amp;width=816&amp;cache=v2" alt="2.点击导入您的NotionNext项目" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">2.点击导入您的NotionNext项目</figcaption></div></figure><div class="notion-callout notion-yellow_background_co notion-block-7c79d2ab5a6047f9b000bd5c40f857f0"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-44a97220635249a480e29e2075355ba1">注意：这里步骤放慢些，<b>不要急着</b>点击页面上的<b>Deploy</b>按钮，先看下方教程。</div></div></div></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d9712a0a55fe433a8f26e7d11b70b122" data-id="d9712a0a55fe433a8f26e7d11b70b122"><span><div id="d9712a0a55fe433a8f26e7d11b70b122" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d9712a0a55fe433a8f26e7d11b70b122" title="配置页面ID并部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置页面ID并部署</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-6707c992ffa744b2bc3662a5fa77ad6c" style="list-style-type:decimal"><li>点击<b>Environment Variables</b>（环境变量），并添加一个属性名称为<code class="notion-inline-code"><b>NOTION_PAGE_ID</b></code><b>，</b>值为步骤一获取的<b>页面ID</b>。</li><ol class="notion-list notion-list-numbered notion-block-6707c992ffa744b2bc3662a5fa77ad6c" style="list-style-type:lower-alpha"><div class="notion-text notion-block-019ef7789b4f4c7e842e09413c2a9efb">例如，我的页面ID是：<code class="notion-inline-code">02ab3b8678004aa69e9e415905ef32a5</code>，则配置如下：</div><table class="notion-simple-table notion-block-b4d291ebab7a455589e43f4544b5e3cb"><tbody><tr class="notion-simple-table-row notion-block-546414ce6761477e9ba5ac4462704ac3"><td class="" style="width:179.984375px"><div class="notion-simple-table-cell">属性名称 Name</div></td><td class="" style="width:341px"><div class="notion-simple-table-cell">属性值 Valve</div></td></tr><tr class="notion-simple-table-row notion-block-6143aea3c2d34435aca51c6652fb093d"><td class="" style="width:179.984375px"><div class="notion-simple-table-cell">NOTION_PAGE_ID</div></td><td class="" style="width:341px"><div class="notion-simple-table-cell">02ab3b8678004aa69e9e415905ef32a5</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-73636a25a2e443849f095f2c2ccdc70e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd0a1c190-4da7-4bb5-b418-a87c82c1d00b%2FUntitled.png?table=block&amp;id=73636a25-a2e4-4384-9f09-5f2c2ccdc70e&amp;t=73636a25-a2e4-4384-9f09-5f2c2ccdc70e&amp;width=816&amp;cache=v2" alt="左侧填写 NOTION_PAGE_ID ， 右侧填写 页面ID的值" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">左侧填写 NOTION_PAGE_ID ， 右侧填写 页面ID的值</figcaption></div></figure><div class="notion-text notion-block-7eac694b258a4e92a640dcf96258e643">填写后要<b>点击右边的</b><b><code class="notion-inline-code">Add</code></b><b>按钮</b>确认添加</div></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-fa4dce6a14954e9c8c1215eb1fadc0e3" style="list-style-type:decimal"><li>点击<code class="notion-inline-code">Deploy</code>按钮，静候两分钟等待部署。</li><ol class="notion-list notion-list-numbered notion-block-fa4dce6a14954e9c8c1215eb1fadc0e3" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-eddb8f9750c44761a78718e44396d51e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F59f7f49f-f6fa-4406-838d-9dcfe97ef028%2FUntitled.png?table=block&amp;id=eddb8f97-50c4-4761-a787-18e44396d51e&amp;t=eddb8f97-50c4-4761-a787-18e44396d51e&amp;width=816&amp;cache=v2" alt="1.点击Deploy进行自动部署" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">1.点击Deploy进行自动部署</figcaption></div></figure></ol></ol><div class="notion-blank notion-block-9333a57830004da693dde3d07a681e1a"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-d6e794c338d342419c0aa923083d5591" data-id="d6e794c338d342419c0aa923083d5591"><span><div id="d6e794c338d342419c0aa923083d5591" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d6e794c338d342419c0aa923083d5591" title="四、完成🎉🎉🎉"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、完成🎉🎉🎉</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-b9165ee0d1a14335adc2fab972322a76" style="list-style-type:decimal"><li>在部署完成页面，点击<code class="notion-inline-code">Go to Dashboard</code>访问控制台</li><ol class="notion-list notion-list-numbered notion-block-b9165ee0d1a14335adc2fab972322a76" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b17d7f799861447cbacb3709c76c4668"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff36b1f60-f19c-484f-a5d5-bf0f683938c3%2FUntitled.png?table=block&amp;id=b17d7f79-9861-447c-bacb-3709c76c4668&amp;t=b17d7f79-9861-447c-bacb-3709c76c4668&amp;width=816&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3966b4d89254445285d1a91dbda9b053" style="list-style-type:decimal"><li>在控制台右上角的<code class="notion-inline-code">Visit</code>按钮访问您的站点。或在DOMAINS中获取您的网站地址</li><ol class="notion-list notion-list-numbered notion-block-3966b4d89254445285d1a91dbda9b053" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b57c3e3cfa524bc19d20c6ba4edfee42"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F88d76586-2965-4a0a-8c34-519defe654d1%2FUntitled.png?table=block&amp;id=b57c3e3c-fa52-4bc1-9d20-c6ba4edfee42&amp;t=b57c3e3c-fa52-4bc1-9d20-c6ba4edfee42&amp;width=816&amp;cache=v2" alt="2.在Vercel控制台中找到访问地址" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">2.在Vercel控制台中找到访问地址</figcaption></div></figure></ol></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16a8fdbd1b644536816b1e034243c6d4" data-id="16a8fdbd1b644536816b1e034243c6d4"><span><div id="16a8fdbd1b644536816b1e034243c6d4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16a8fdbd1b644536816b1e034243c6d4" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h2><div class="notion-callout notion-teal_background_co notion-block-a72bef40f4c54576bbcb0188a43be6d0"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-08f4eb434f694ccfa1dbe1d74752106f">NotionNext会实时抓取Notion笔记内容
(由于缓存和网络延迟，最多刷新两次页面即可看到同步结果)。</div></div></div><div class="notion-callout notion-orange_background_co notion-block-4dbf1a15c10747f99702587f7794af85"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="⚠️">⚠️</span></div><div class="notion-callout-text"><div class="notion-text notion-block-585b14208a80471fa3aec9ebca68c7ec"><b>若您的站点始终无法同步笔记的数据</b>，请再次检查上面的步骤，或者干脆重来一遍：
1. 在Notion中检查您的<code class="notion-inline-code">NOTION_PAGE_ID</code> 格式是否正确、并已开起页面分享。
2. Vercel后台环境变量中<code class="notion-inline-code">NOTION_PAGE_ID</code>是否配置，并重新配置后尝试<span class="notion-red"><code class="notion-inline-code">Redeploy</code></span>。
如何检查Vercel后台环境变量配置：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e8ce052ae944c69ba88f6b8da48b06b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:576px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe6a29e6c-e115-4f9b-a499-9984d5985de9%2FUntitled.png?table=block&amp;id=1e8ce052-ae94-4c69-ba88-f6b8da48b06b&amp;t=1e8ce052-ae94-4c69-ba88-f6b8da48b06b&amp;width=576&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-82643f5b103b4b30b3ddccd0a53a3d45">如何重新部署</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d1ce4a830f684359a01e3ee9d32d5fca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:576px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F69157456-65ac-4264-893c-d67669ce3a70%2FUntitled.png?table=block&amp;id=d1ce4a83-0f68-4359-a01e-3ee9d32d5fca&amp;t=d1ce4a83-0f68-4359-a01e-3ee9d32d5fca&amp;width=576&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-333ba129b556469189c47d44214b8f90" data-id="333ba129b556469189c47d44214b8f90"><span><div id="333ba129b556469189c47d44214b8f90" class="notion-header-anchor"></div><a class="notion-hash-link" href="#333ba129b556469189c47d44214b8f90" title="自定义您的站点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自定义您的站点</span></span></h2><div class="notion-text notion-block-894d6d2b652c46b49b77e82578c0d35e">到这里，您已拥有了自己的独立博客，站点的一切内容：标题、描述、头像、菜单栏等所有配置都可随心所欲地定制。</div><div class="notion-text notion-block-09b59238d9e24674bef00cc6c45bbaf2">接下来，请访问下方的《<b>NotionNext 操作手册</b>》获取更多站点配置的帮助！</div><div class="notion-row"><a class="notion-bookmark notion-block-f17ddf5a535b4390b44ef585ca38e262" href="https://docs.tangly1024.com/about" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">NotionNext-快速免费搭建网站 | NotionNext文档</div><div class="notion-bookmark-description">无需服务器、即使是小白也能几分钟搭建自己的独立博客站～如果你在使用Notion这款神级笔记本的话，不妨来试试顺手建个网站🤣🤣🤣，这是一款基于NotionAPI的博客系统。</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fdocs.tangly1024.com%2Ffavicon.ico?table=block&amp;id=f17ddf5a-535b-4390-b44e-f585ca38e262&amp;t=f17ddf5a-535b-4390-b44e-f585ca38e262" alt="NotionNext-快速免费搭建网站 | NotionNext文档" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://docs.tangly1024.com/about</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff8da5e9b-59e7-4c1d-b432-e4c93345c23f%2FWechatIMG1493.jpeg?table=block&amp;id=79ef4261-6c79-4d7c-8f25-be27f6f62b91&amp;width=1080&amp;t=f17ddf5a-535b-4390-b44e-f585ca38e262&amp;cache=v2" alt="NotionNext-快速免费搭建网站 | NotionNext文档" loading="lazy" decoding="async"/></div></a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[如何配置站点]]></title>
            <link>https://docs.tangly1024.com/article/how-to-config-notion-next</link>
            <guid>https://docs.tangly1024.com/article/how-to-config-notion-next</guid>
            <pubDate>Mon, 13 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[NotionNext 站点配置指南：说明如何通过 Notion Config、代码配置和 Vercel 环境变量修改主题、作者信息、站点域名、插件开关等常用配置。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-9a838fbcb36a47cf8e2ba0b41cf89a49"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-blank notion-block-65838cf643a74a51a7894ac1b85b7deb"> </div><div class="notion-text notion-block-c096e38f3aa2460499d62a5d1c08c38c">按照前面的教程完成部署后，你可以随时调整站点配置，例如切换主题、开启音乐组件、开启评论插件、开启动画特效、修改网站字体等。</div><div class="notion-text notion-block-79da9002a3a84861b01958a5bf443386">NotionNext 的配置方式主要有三种：</div><ol start="1" class="notion-list notion-list-numbered notion-block-967d7343c23547418a1f03dd0a35338d" style="list-style-type:decimal"><li>在Notion笔记中修改</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-65de0869c856434fa061072efcdf0d3c" style="list-style-type:decimal"><li>Github修改配置代码</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-76015369351a4cc5a2b2f3f8a20b5d7d" style="list-style-type:decimal"><li>Vercel环境变量添加配置</li></ol><div class="notion-blank notion-block-35812965541d4e7b90e11dec2fb5ca2f"> </div><div class="notion-text notion-block-330273ceb35243bdb2a567f45116774b">下面逐一说明。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-9fee7685071e4c2888dcd93e4453331c" data-id="9fee7685071e4c2888dcd93e4453331c"><span><div id="9fee7685071e4c2888dcd93e4453331c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9fee7685071e4c2888dcd93e4453331c" title="1. 在Notion中修改"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. 在Notion中修改</span></span></h2><div class="notion-text notion-block-8d90bb4ab8474d248b740ed1b8a185b5">网站的图标、标题、描述和封面图，会直接读取你的 Notion 模板内容。</div><div class="notion-row notion-block-117976f77e954a8ba322504996febaae"><div class="notion-column notion-block-aa13281b628b4709b8d0934a47f1a262" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a93e8a93928a4bf59be1ca3380587cd2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fe31c4782-32a3-49f5-8066-69b3dba83318%2FUntitled.png?table=block&amp;id=a93e8a93-928a-4bf5-9be1-ca3380587cd2&amp;t=a93e8a93-928a-4bf5-9be1-ca3380587cd2&amp;width=330.9765625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3cad873898834a62bdd9f7da83535af7"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-c6c23e223b70496aa67ea981777459e7" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-adc9ef1e1fd34ac99057a773262ae4d6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F84c5839f-0d42-4c68-9f9e-5a1ab4127757%2FUntitled.png?table=block&amp;id=adc9ef1e-1fd3-4ac9-9057-a773262ae4d6&amp;t=adc9ef1e-1fd3-4ac9-9057-a773262ae4d6&amp;width=528&amp;cache=v2" alt="图标①、标题②、描述③及封面图④ 分别对应站点的作者头像、站点标题站点描述和封面大图。" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">图标<span class="notion-red">①</span>、标题<span class="notion-red">②</span>、描述<span class="notion-red">③</span>及封面图<span class="notion-red">④ </span>分别对应站点的<b>作者头像</b>、<b>站点标题</b><b>站点描述</b>和<b>封面大图</b>。</figcaption></div></figure></div><div class="notion-spacer"></div></div><div class="notion-callout notion-teal_background_co notion-block-8746b2cd3f424de4ba9839e606746c86"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-90bd8ce121b845b9b7c45721558763ba">在 4.1 之前的版本（1.0 - 4.0）中，很多配置需要在配置文件或环境变量中修改，用户通常要打开编辑器、登录 GitHub，甚至进入 Vercel 后台调整环境变量。

从 4.1 版本开始，NotionNext 支持在 Notion 中创建 Config 文档，并直接在 Notion 中维护站点配置。</div></div></div><div class="notion-blank notion-block-7c007baf23264146be03c2bdd40039c9"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3edb6a42a64247b689ef89cceadb83dd" data-id="3edb6a42a64247b689ef89cceadb83dd"><span><div id="3edb6a42a64247b689ef89cceadb83dd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3edb6a42a64247b689ef89cceadb83dd" title="使用Notion-Config"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用Notion-Config</span></span></h3><div class="notion-callout notion-gray_background_co notion-block-eb8173d2a07d488fbf744b03b10ab56e"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-20e734284a694e5c8a2a08ca27be439c">在 Notion 中编辑一个 Config 文档，就可以实时同步站点配置、功能开关等内容，无需登录 GitHub、Vercel 或服务器后台。</div></div></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a2f0c23a4b4f4ea6adac0db835383602" data-id="a2f0c23a4b4f4ea6adac0db835383602"><span><div id="a2f0c23a4b4f4ea6adac0db835383602" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a2f0c23a4b4f4ea6adac0db835383602" title="如何使用？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">如何使用？</span></span></h4><div class="notion-text notion-block-355820e508ae4fd58ca6dfc345f859e5">在您起初复制的这份数据库模板中，我后续更新了一个 <b>type</b> 为 <b>Config</b> 的文档，文档中包含了一个数据表格，格式如下：</div><div class="notion-row notion-block-f576f5177af544848a3a8a0533fa6069"><div class="notion-column notion-block-38d25d0196dd4ab3b4f8de06f5dd6628" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-53b336a2ada34a96b20ce2908ce17aad"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F2ec61249-acb8-4e92-ba46-80e0ffea02d4%2FUntitled.png?table=block&amp;id=53b336a2-ada3-4a96-b20c-e2908ce17aad&amp;t=53b336a2-ada3-4a96-b20c-e2908ce17aad&amp;width=624&amp;cache=v2" alt="配置中心-Config" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">配置中心-Config</figcaption></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-6c57e8067ba444d096217b28d459314b" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b12746eac06840848c25fb1b2c3e1f6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:480px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F93ed01d2-3bdd-4061-a068-af45f17d6edc%2FUntitled.png?table=block&amp;id=b12746ea-c068-4084-8c25-fb1b2c3e1f6b&amp;t=b12746ea-c068-4084-8c25-fb1b2c3e1f6b&amp;width=480&amp;cache=v2" alt="配置中心的内置表格" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">配置中心的内置表格</figcaption></div></figure></div><div class="notion-spacer"></div></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e5ae54d971b4e70b355abe0d18d433c" data-id="2e5ae54d971b4e70b355abe0d18d433c"><span><div id="2e5ae54d971b4e70b355abe0d18d433c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e5ae54d971b4e70b355abe0d18d433c" title="配置中心使用说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置中心使用说明</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-801ad07a96794bae85804c4c1e754494" style="list-style-type:decimal"><li>仅 <b><span class="notion-inline-underscore">V4.1.0</span></b> 之后的版本中支持该配置页面</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-ae47c646784d42089e31a4c697e66004" style="list-style-type:decimal"><li>此处配置的优先级最高，它将覆盖Vercel环境变量、覆盖blog.config.js。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-adaafa15a1f8438183c577e8fc38296f" style="list-style-type:decimal"><li>您可以在<code class="notion-inline-code">blog.config.js</code>以及各个主题的<code class="notion-inline-code">config.js</code>中找到支持的配置，在4.8.0之后的版本，为了减少<code class="notion-inline-code">blog.config.js</code>的体积，不同模块的配置被拆分到了 <code class="notion-inline-code">/conf/xx.js</code> 中</li><ol class="notion-list notion-list-numbered notion-block-adaafa15a1f8438183c577e8fc38296f" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d3f93b9208b80248213db1d695ddea2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa66a6693-033e-4c2f-9fd1-1dae81c66490%3Aimage.png?table=block&amp;id=1d3f93b9-208b-8024-8213-db1d695ddea2&amp;t=1d3f93b9-208b-8024-8213-db1d695ddea2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-352f93b9208b8084987decb9d455e5b7">各类配置的参考路径： <a class="notion-link" href="https://github.com/tangly1024/NotionNext/tree/main/conf" target="_blank" rel="noopener noreferrer">https://github.com/tangly1024/NotionNext/tree/main/conf</a></div><div class="notion-text notion-block-352f93b9208b8003bbbfd563da4b2f4a">主题支持的配置内容参考路径： <a class="notion-link" href="https://github.com/tangly1024/NotionNext/blob/main/themes/example/config.js" target="_blank" rel="noopener noreferrer">https://github.com/tangly1024/NotionNext/blob/main/themes/example/config.js</a></div></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-eca256218ca444ff8a5330d87ae1266b" style="list-style-type:decimal"><li><code class="notion-inline-code">NOTION_PAGE_ID</code> 必须在你的环境变量或代码中配置，不支持Notion_Config文档配置</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-2203605ddcb543e6831dab90fcaa9ce6" style="list-style-type:decimal"><li>配置中心的表格中我预置了几个常用配置，您可以按照自己的需求手动添加更多配置</li><ol class="notion-list notion-list-numbered notion-block-2203605ddcb543e6831dab90fcaa9ce6" style="list-style-type:lower-alpha"><div class="notion-text notion-block-e5094fed1cc04643a83555ec4df1dc49">点击右上角的<code class="notion-inline-code">new</code>或者左侧加号<code class="notion-inline-code">+</code>都可以新增一行配置，然后填入对应的“配置名”和“配置值”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-20157820287541bdbed4d3132fc67d31"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F3eec71a1-059d-44a6-99da-92c938f446bf%2FUntitled.png?table=block&amp;id=20157820-2875-41bd-bed4-d3132fc67d31&amp;t=20157820-2875-41bd-bed4-d3132fc67d31&amp;width=680.01953125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-fc8ee5af001e45cdb1994cfc81733082" style="list-style-type:decimal"><li>强烈建议添加的配置</li><ol class="notion-list notion-list-numbered notion-block-fc8ee5af001e45cdb1994cfc81733082" style="list-style-type:lower-alpha"><div class="notion-text notion-block-352f93b9208b806aab1cceda42afd189"><code class="notion-inline-code"><b>AUTHOR</b></code>，作者名</div><div class="notion-text notion-block-352f93b9208b80d4b0f5d474261a9144"><code class="notion-inline-code"><b>LINK</b></code>，你的站点网址</div><div class="notion-text notion-block-352f93b9208b80b9b2a2d299962fdae4"><code class="notion-inline-code"><b>CONTACT_EMAIL </b></code>, 你的联系邮箱，更多联系方式，在此查看配置方式： <a class="notion-link" href="https://github.com/tangly1024/NotionNext/blob/main/conf/contact.config.js" target="_blank" rel="noopener noreferrer">https://github.com/tangly1024/NotionNext/blob/main/conf/contact.config.js</a></div><div class="notion-text notion-block-352f93b9208b807388acfeaf72f2abc0">（务必配置你自己的联系方式！）</div></ol></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-89798ed9ac88463a98429bac353843ee" data-id="89798ed9ac88463a98429bac353843ee"><span><div id="89798ed9ac88463a98429bac353843ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#89798ed9ac88463a98429bac353843ee" title="表格字段说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">表格字段说明</span></span></h4><table class="notion-simple-table notion-block-c827587d0af24869aa52783aade1c46a"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-ce756861b2ca4b709a477abd496e8ba9"><td class="" style="width:120px"><div class="notion-simple-table-cell">表头字段</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">说明</div></td></tr><tr class="notion-simple-table-row notion-block-22de16a0639d491bab2e48c5a69a4eb2"><td class="" style="width:120px"><div class="notion-simple-table-cell">启用</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">此项勾选后，配置会同步到NotionNext站点中</div></td></tr><tr class="notion-simple-table-row notion-block-30ee27dd22df40b4a17101ec2b016bd7"><td class="" style="width:120px"><div class="notion-simple-table-cell">配置名</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">参阅环境变量的变量名，例如 <code class="notion-inline-code">AUTHOR</code></div></td></tr><tr class="notion-simple-table-row notion-block-3f003b5c9dc54b2990234a41600d06db"><td class="" style="width:120px"><div class="notion-simple-table-cell">配置值</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">输入您的值 例如作者名 <code class="notion-inline-code">tangly1024</code> ， 或者 <code class="notion-inline-code">true</code> / <code class="notion-inline-code">false</code> </div></td></tr><tr class="notion-simple-table-row notion-block-0ef6467ec1384279b19241231d699e0e"><td class="" style="width:120px"><div class="notion-simple-table-cell">配置备注</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">仅作为备忘说明使用</div></td></tr><tr class="notion-simple-table-row notion-block-2d03ca1ff00b42e3b298e99e90a25966"><td class="" style="width:120px"><div class="notion-simple-table-cell">配置附件</div></td><td class="" style="width:488px"><div class="notion-simple-table-cell">如果配置的值是一张图片，可以在这里上传</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-ad19300af2a14dae8ff4ea89cbd5bced" data-id="ad19300af2a14dae8ff4ea89cbd5bced"><span><div id="ad19300af2a14dae8ff4ea89cbd5bced" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ad19300af2a14dae8ff4ea89cbd5bced" title="支持主题配置与复杂格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">支持主题配置与复杂格式</span></span></h4><div class="notion-text notion-block-770e51dba59e4b628bde9f454464a39d">基本上所有的主题配置项都可以使用<code class="notion-inline-code">NOTION_CONFIG</code>。但需要注意的是，如果配置的内容是一个数组或者对象的话，需要将NOTION_CONFIG中的内容转成<b>双引号的json</b>格式，否则会无法读取，例如HEO主题下支持四项配置：</div><div class="notion-text notion-block-4c38f2194b4142439430fed5c76ddb9f">这四种类型在<code class="notion-inline-code">Notion_Config</code>中的参考配置如下,其中对象和数组都转成了json格式：</div><table class="notion-simple-table notion-block-45e115519abb4407ba52367017a4f1e7"><tbody><tr class="notion-simple-table-row notion-block-fbdf3348bc314f74a14e30d342a8aed5"><td class="" style="width:120px"><div class="notion-simple-table-cell">配置名</div></td><td class="" style="width:418.99998474121094px"><div class="notion-simple-table-cell">配置值</div></td></tr><tr class="notion-simple-table-row notion-block-0f9924d8eb1c4735a3eaefd59f5d0027"><td class="" style="width:120px"><div class="notion-simple-table-cell">HEO_HOME_BANNER_ENABLE</div></td><td class="" style="width:418.99998474121094px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-18a71537f5ae44bcb1cb9cc3a8c85ae9"><td class="" style="width:120px"><div class="notion-simple-table-cell">HEO_SITE_CREATE_TIME</div></td><td class="" style="width:418.99998474121094px"><div class="notion-simple-table-cell">test</div></td></tr><tr class="notion-simple-table-row notion-block-b4cac84841f045e481a11925a56ef19b"><td class="" style="width:120px"><div class="notion-simple-table-cell">HEO_HERO_CATEGORY_1</div></td><td class="" style="width:418.99998474121094px"><div class="notion-simple-table-cell">{
&quot;title&quot;: &quot;必看精选&quot;,
&quot;url&quot;: &quot;/tag/必看精选&quot;
}</div></td></tr><tr class="notion-simple-table-row notion-block-b934afc180ee42a380d69186bb9cd603"><td class="" style="width:120px"><div class="notion-simple-table-cell">HEO_NOTICE_BAR</div></td><td class="" style="width:418.99998474121094px"><div class="notion-simple-table-cell">[
{
&quot;title&quot;: &quot;测试消息1&quot;,
&quot;url&quot;: &quot;https: //blog.tangly1024.com&quot;
},
{
&quot;title&quot;: &quot;测试消息2&quot;,
&quot;url&quot;: &quot;https: //docs.tangly1024.com&quot;
}
]</div></td></tr></tbody></table><div class="notion-text notion-block-84064cbe5f1f4154abeb50c0880db85f">配置后的效果示例：</div><div class="notion-row"><a class="notion-bookmark notion-block-c2561d119ed540e1b9c06577fd8323fc" href="https://www.notion.so/tanghh/1e9b9ee182c6474782b55cd3a2e1c396?v=a573d986661d402aac46970d8f20c083&amp;pvs=4" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">CONFIG-TABLE | Notion</div><div class="notion-bookmark-description">Built with Notion, the all-in-one connected workspace with publishing capabilities.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwww.notion.so%2Ffront-static%2Flogo-ios.png?table=block&amp;id=c2561d11-9ed5-40e1-b9c0-6577fd8323fc&amp;t=c2561d11-9ed5-40e1-b9c0-6577fd8323fc" alt="CONFIG-TABLE | Notion" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.notion.so/tanghh/1e9b9ee182c6474782b55cd3a2e1c396?v=a573d986661d402aac46970d8f20c083&amp;pvs=4</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Ftanghh.notion.site%2Fimages%2Fmeta%2Fnotion-wordmark.png?table=block&amp;id=c2561d11-9ed5-40e1-b9c0-6577fd8323fc&amp;t=c2561d11-9ed5-40e1-b9c0-6577fd8323fc" alt="CONFIG-TABLE | Notion" loading="lazy" decoding="async"/></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-101f93b9208b8019b366e13f8e14edd2" data-id="101f93b9208b8019b366e13f8e14edd2"><span><div id="101f93b9208b8019b366e13f8e14edd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#101f93b9208b8019b366e13f8e14edd2" title="如何将代码中的Config转换成JSON？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">如何将代码中的Config转换成JSON？</span></span></h3><div class="notion-text notion-block-95b14459999f449d93956f04eaac614c">如何将config中的对象转成json可以借助AI，或者一些在线json格式化工具。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-101f93b9208b80a5916bfee787d1756d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:768px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F93402b6b-4a12-46ca-8daf-9e06ea98fe88%2Fimage.png?table=block&amp;id=101f93b9-208b-80a5-916b-fee787d1756d&amp;t=101f93b9-208b-80a5-916b-fee787d1756d&amp;width=768&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-101f93b9208b8087b1a5dea8876d5950"> </div><div class="notion-blank notion-block-101f93b9208b806990a1d18bd87681f0"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1c9cd9751d074453b48176dc796f1da2" data-id="1c9cd9751d074453b48176dc796f1da2"><span><div id="1c9cd9751d074453b48176dc796f1da2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1c9cd9751d074453b48176dc796f1da2" title="老用户升级"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">老用户升级</span></span></h3><div class="notion-text notion-block-4b4e9786f2814ada82cd839c74325a38">对于新用户（2024年起）：您复制的数据库模板中已经默认自带了此配置页面。</div><div class="notion-text notion-block-0782a4d84d2249c682935de4c326038d">老用户升级（2023年及以前）：您可以<b>复制下面链接中的《配置中心》</b>文档，即可支持NotionConfig功能。</div><div class="notion-row"><a class="notion-bookmark notion-block-6bdd974a3fd4487687296dd5359a8bfb" href="https://www.notion.so/tanghh/02ab3b8678004aa69e9e415905ef32a5" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.</div><div class="notion-bookmark-description">A new tool that blends your everyday work apps into one. It&#x27;s the all-in-one workspace for you and your team</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/images/logo-ios.png" alt="Notion – The all-in-one workspace for your notes, tasks, wikis, and databases." loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.notion.so/tanghh/02ab3b8678004aa69e9e415905ef32a5</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/images/meta/default.png" alt="Notion – The all-in-one workspace for your notes, tasks, wikis, and databases." loading="lazy" decoding="async"/></div></a></div><div class="notion-text notion-block-cb258d1e22e146208594e78039e23db1">单击此文档左侧的六个点即可选中，按下Ctrl+C复制文档。然后在您的Notion模板页面中按下Ctrl+V粘贴即可。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-eb80ff10f2e047bcab18de3d1842d74d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F8c0c52ed-72e2-4c19-9aa2-5dc359971154%2FUntitled.png?table=block&amp;id=eb80ff10-f2e0-47bc-ab18-de3d1842d74d&amp;t=eb80ff10-f2e0-47bc-ab18-de3d1842d74d&amp;width=707.98828125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-44580cd7c83c49679c9fb1849a8261d7" data-id="44580cd7c83c49679c9fb1849a8261d7"><span><div id="44580cd7c83c49679c9fb1849a8261d7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#44580cd7c83c49679c9fb1849a8261d7" title="2. 修改代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2. 修改代码</span></span></h2><div class="notion-callout notion-orange_background_co notion-block-f6983c07bc8d4f849ebdef4787470c90"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-0b6a57390c294a25935707b45135365d">重要：站点的大部分配置都可以在您代码仓库的 <b><a class="notion-link" href="https://github.com/tangly1024/NotionNext/blob/main/blog.config.js" target="_blank" rel="noopener noreferrer">blog.config.js</a></b><b> </b>文件中找到；
您只需修改对应的配置，Vercel将自动部署您Github仓库中的最新代码。</div></div></div><div class="notion-callout notion-gray_background_co notion-block-cd8c4ccd4a6046d6a3acdd4c32431cef"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-4e8d7db59b8b48b4880a20ca1f1e02ee">若您更新到了NotionNext4.1之后的版本，推荐您直接在Notion-Config文件中添加配置，它将覆盖blog.config.js中的配置。</div></div></div><div class="notion-text notion-block-1ad9ccb8f8b54fc7b30103fa8bdcae60">配置方法：在您的github中找到此文件，点击右上角的编辑按钮，即可修改参数。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-6dff5d206a414a96b52fae6ac6ba32fb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F087c5f68-f681-4c28-bc45-3121b3589300%2FUntitled.png?table=block&amp;id=6dff5d20-6a41-4a96-b52f-ae6ac6ba32fb&amp;t=6dff5d20-6a41-4a96-b52f-ae6ac6ba32fb&amp;width=624&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-callout notion-teal_background_co notion-block-b94ef9252a8c44acb0bd73bfea088bac"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-fe76b266f45f443fbb5be2b1a35d2545">每次修改代码后，Vercel自动创建一个部署任务以打包部署您的最新代码，且每次部署任务都有唯一的<b>网址提供预览</b>。</div><ul class="notion-list notion-list-disc notion-block-55a339a571954e8e822d9b377ec6aada"><li>若编译<b>成功：</b>您的线上域名会更新为此次部署的<b>最新版本</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-b471f12fdf4449c3a13510bc71665abb"><li>若部署<b>失败：</b>例如代码格式错误、拼写错误，则这次部署则会作废，线上原先运行中的旧版网站<b>不受任何影响</b>。您可以查看后台部署日志找到错误原因。</li><ul class="notion-list notion-list-disc notion-block-b471f12fdf4449c3a13510bc71665abb"><details class="notion-toggle notion-block-db2f414e72894bd391a5e42eecf3b4c3"><summary>附-如何获取部署日志</summary><div><div class="notion-text notion-block-0d40805ea15a44c5b78e5b906b28448b">截图您的部署日志，向<a class="notion-link" href="https://docs.tangly1024.com/article/about-author" target="_blank" rel="noopener noreferrer">群友</a>寻求帮助</div><ol start="1" class="notion-list notion-list-numbered notion-block-0a9a531c51384f969bc7134f125b0b81" style="list-style-type:decimal"><li>在Vercel的后台看到您的每次部署记录(点击展开)</li><ol class="notion-list notion-list-numbered notion-block-0a9a531c51384f969bc7134f125b0b81" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4792e3b2688846c894c131c09704ed80"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6f566bb2-442a-422b-9cd5-cd50df1e4d53%2FUntitled.png?table=block&amp;id=4792e3b2-6888-46c8-94c1-31c09704ed80&amp;t=4792e3b2-6888-46c8-94c1-31c09704ed80&amp;width=843.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-171e68a8853d4d47b5e5ca5325c4893e" style="list-style-type:decimal"><li>请截图部署的错误日志，错误信息越完整越好；</li><ol class="notion-list notion-list-numbered notion-block-171e68a8853d4d47b5e5ca5325c4893e" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1b7594f11b924e1990a422608ff2904c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fbe6929b6-d6a6-48ab-94e8-7e68cb3ced91%2FUntitled.png?table=block&amp;id=1b7594f1-1b92-4e19-90a4-22608ff2904c&amp;t=1b7594f1-1b92-4e19-90a4-22608ff2904c&amp;width=843.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol></div></details></ul></ul></div></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ecbaff6afc2f4968a2f50e8157cd11c3" data-id="ecbaff6afc2f4968a2f50e8157cd11c3"><span><div id="ecbaff6afc2f4968a2f50e8157cd11c3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ecbaff6afc2f4968a2f50e8157cd11c3" title="修改示例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改示例</span></span></h4><blockquote class="notion-quote notion-block-a5277e3563f144259a6c97d736da2ff5"><div>以下示例修改了网站的默认作者</div></blockquote><ul class="notion-list notion-list-disc notion-block-c669fc5798c04848b79b5fcd07780bac"><li>修改前</li><ul class="notion-list notion-list-disc notion-block-c669fc5798c04848b79b5fcd07780bac"></ul></ul><ul class="notion-list notion-list-disc notion-block-e23280e528044c9aab69e1a830200fae"><li>修改后</li><ul class="notion-list notion-list-disc notion-block-e23280e528044c9aab69e1a830200fae"></ul></ul><blockquote class="notion-quote notion-block-34565a1fb4eb4d399aed823429c31fe3"><div>以下示例修改了当前网站的网址</div></blockquote><ul class="notion-list notion-list-disc notion-block-99315dba13b2497ea84389e880b1c77e"><li>修改前</li><ul class="notion-list notion-list-disc notion-block-99315dba13b2497ea84389e880b1c77e"></ul></ul><ul class="notion-list notion-list-disc notion-block-9b55828817094aeebeda81967068e120"><li>修改后</li><ul class="notion-list notion-list-disc notion-block-9b55828817094aeebeda81967068e120"><div class="notion-callout notion-block-ac9d5e3612434a01b3343a110e642eac"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-d8f275903dda45f5a12265ebced81716">请将这项配置修改为您的站点域名，否则会影响分享和版权申明的功能使用</div></div></div></ul></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-c4768010ae7d44609b744e79e2f9959a" data-id="c4768010ae7d44609b744e79e2f9959a"><span><div id="c4768010ae7d44609b744e79e2f9959a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c4768010ae7d44609b744e79e2f9959a" title="3. 在环境变量中配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 在环境变量中配置</span></span></h2><div class="notion-text notion-block-97fdd5897aac45afaa092d1b894a4942">除了直接修改代码配置<code class="notion-inline-code">blog.config.js</code> ，也可以在vercel后台添加环境变量；这样做的好处是减少对代码的改动，也避免了后续升级时代码发生冲突的概率。</div><div class="notion-callout notion-yellow_background_co notion-block-32e7da74cc0d44d983172de09213bb28"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-3811a91a93024b21a6bea0490f7a1fa8">网站配置优先来自<b>NotionConfig</b>，其次<b>环境变量</b>，最后<b>代码配置</b>。</div></div></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-e6dfb3f784ad4289ad01cee73e06f474" data-id="e6dfb3f784ad4289ad01cee73e06f474"><span><div id="e6dfb3f784ad4289ad01cee73e06f474" class="notion-header-anchor"></div><a class="notion-hash-link" href="#e6dfb3f784ad4289ad01cee73e06f474" title="内置主题名称一览（与仓库同步）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">内置主题名称一览（与仓库同步）</span></span></h4><div class="notion-text notion-block-db8d403686c34493bc53b04aa23b0792"><code class="notion-inline-code">NEXT_PUBLIC_THEME</code> / <code class="notion-inline-code">THEME</code> 的取值需与仓库 <code class="notion-inline-code"><a class="notion-link" href="https://github.com/tangly1024/NotionNext/tree/main/themes" target="_blank" rel="noopener noreferrer">themes/</a></code> 下的<b>文件夹名</b>一致（<code class="notion-inline-code">next.config.js</code> 会在构建时扫描该目录）。以当前 <b>main</b> 分支为例，内置主题包括：<b>claude</b>、<b>commerce</b>、<b>example</b>、<b>fukasawa</b>、<b>fuwari</b>、<b>game</b>、<b>gitbook</b>、<b>heo</b>、<b>hexo</b>、<b>landing</b>、<b>magzine</b>、<b>matery</b>、<b>medium</b>、<b>movie</b>、<b>nav</b>、<b>next</b>、<b>nobelium</b>、<b>photo</b>、<b>plog</b>、<b>proxio</b>、<b>simple</b>、<b>starter</b>、<b>typography</b>。</div><ul class="notion-list notion-list-disc notion-block-f3cf6879bf1f4643b6dcfc8ea0a36aa2"><li><b>默认</b>一般为 <b>simple</b>；与 <code class="notion-inline-code">blog.config.js</code> 中 <code class="notion-inline-code">THEME</code> 的写法保持一致即可。</li></ul><ul class="notion-list notion-list-disc notion-block-c739793edeb148e78af9b774f0b4eb80"><li><b>example</b> 多为主题/配置的参考示例，生产站点更常选用 simple、hexo、heo、fuwari、claude 等其它主题。</li></ul><ul class="notion-list notion-list-disc notion-block-b9e142b5ee4c45ffb8b44806ece0c9eb"><li>文件夹名为 <b>magzine</b>（与英文 magazine 拼写不同，请勿写错）。</li></ul><ul class="notion-list notion-list-disc notion-block-004b5c6dcc4147578cc668ba0569d28e"><li>各主题个性化选项与预览方式见文档 <a class="notion-link" href="https://docs.tangly1024.com/article/notion-next-themes" target="_blank" rel="noopener noreferrer">《⭐️主题配置》</a>；若你本地或 fork 的 <code class="notion-inline-code">themes/</code> 与官方不一致，以实际目录为准。</li></ul><ul class="notion-list notion-list-disc notion-block-d3642325873e4c48857281e661f3c4a7"><li>在<code class="notion-inline-code">blog.config.js</code> 文件中可以看到类似 <code class="notion-inline-code">process.env.NEXT_PUBLIC_THEME</code> 的格式，这意味着此类参数支持在Vercel中使用环境变量来配置。默认主题为 <code class="notion-inline-code">simple</code>；若需在页面上显示主题切换菜单，可在仓库 <code class="notion-inline-code">conf/widget.config.js</code> 中配置 <code class="notion-inline-code">THEME_SWITCH</code>（可选用环境变量 <code class="notion-inline-code">NEXT_PUBLIC_THEME_SWITCH</code>）。</li><ul class="notion-list notion-list-disc notion-block-d3642325873e4c48857281e661f3c4a7"></ul></ul><ul class="notion-list notion-list-disc notion-block-5d2fd77e83ee466695f3d62d005078f6"><li>网站优先读取环境变量配置、其次是文件中的配置。</li><ul class="notion-list notion-list-disc notion-block-5d2fd77e83ee466695f3d62d005078f6"><div class="notion-callout notion-teal_background_co notion-block-ac7e5ff457264e7d91915c86247accb5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-5d27124ae9e440a8a73bab0a3993232e">用后台环境变量配置的好处：有些敏感信息不适合直接在代码中修改，例如一些第三方插件的key，这时候推荐通过环境变量来配置。</div></div></div></ul></ul><details class="notion-toggle notion-block-8a8a7c55a23b44a991a2b2c796dfe8ad"><summary>Vercel环境变量如何操作 (点击展开教程)</summary><div><ol start="1" class="notion-list notion-list-numbered notion-block-3faadc78f8114ab28e906770fb722f03" style="list-style-type:decimal"><li>项目主页点击<code class="notion-inline-code">Settings</code>，并选择<code class="notion-inline-code">Environment Variables</code>配置环境变量</li><ol class="notion-list notion-list-numbered notion-block-3faadc78f8114ab28e906770fb722f03" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3741df4cc8104a92816d0d35193e9ec4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:432px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8b98b3eb-2dd9-46ee-9bf5-f4f3ac609f73%2FUntitled.png?table=block&amp;id=3741df4c-c810-4a92-816d-0d35193e9ec4&amp;t=3741df4c-c810-4a92-816d-0d35193e9ec4&amp;width=432&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-d3db0ac42d834911b8a4fae21f87a65c" style="list-style-type:decimal"><li>找到Setting → Environment Variables</li><ol class="notion-list notion-list-numbered notion-block-d3db0ac42d834911b8a4fae21f87a65c" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-9a803b338c2b445fb380ffb7e361364f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:432px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3c0cc497-6b7e-46d4-a0ea-90b399b58dda%2FUntitled.png?table=block&amp;id=9a803b33-8c2b-445f-b380-ffb7e361364f&amp;t=9a803b33-8c2b-445f-b380-ffb7e361364f&amp;width=432&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-25ae3974c17e43d0aabf469e9c1a0cde" style="list-style-type:decimal"><li>在Key中填写配置名称，Value中填写配置的值，如下图:</li><ol class="notion-list notion-list-numbered notion-block-25ae3974c17e43d0aabf469e9c1a0cde" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-80b74d99f02e4b66a400a3f1db9a0af5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:432px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F27c083bd-0ceb-4eee-a9df-685224fffca5%2F4DA432EF-AC19-46EA-AF59-DD0BC45C6483.jpeg?table=block&amp;id=80b74d99-f02e-4b66-a400-a3f1db9a0af5&amp;t=80b74d99-f02e-4b66-a400-a3f1db9a0af5&amp;width=432&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-25d250473c0e4765be52833556fecc09" style="list-style-type:decimal"><li>环境变量修改后，点击顶部<code class="notion-inline-code">Deployments</code>标签，将列表中最上面的一条部署记录<code class="notion-inline-code">Redeploy</code>即可（如下图）</li><ol class="notion-list notion-list-numbered notion-block-25d250473c0e4765be52833556fecc09" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0b9836af69a645748a99f8a18a331ef7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc8e7618c-4bb7-415c-a3f8-b7decda35c9d%2FUntitled.png?table=block&amp;id=0b9836af-69a6-4574-8a99-f8a18a331ef7&amp;t=0b9836af-69a6-4574-8a99-f8a18a331ef7&amp;width=528&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><div class="notion-blank notion-block-36bcf0a562f44ee3bab190b5b859ba47"> </div><h4 class="notion-h notion-h3 notion-block-bcc850214130416e967ac0508deb759e" data-id="bcc850214130416e967ac0508deb759e"><span><div id="bcc850214130416e967ac0508deb759e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bcc850214130416e967ac0508deb759e" title="修改示例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改示例</span></span></h4><table class="notion-simple-table notion-block-bb1218bff67e4e2a9953a180d655bb93"><tbody><tr class="notion-simple-table-row notion-block-bcef491ce4a948bd8fd65bc0921a2dfb"><td class="" style="width:120px"><div class="notion-simple-table-cell">key</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td><td class="" style="width:449px"><div class="notion-simple-table-cell">描述</div></td></tr><tr class="notion-simple-table-row notion-block-cbea5c37a6b545df857553aa95b9f55a"><td class="" style="width:120px"><div class="notion-simple-table-cell">NEXT_PUBLIC_AUTHOR</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">momo</div></td><td class="" style="width:449px"><div class="notion-simple-table-cell">将网站默认作者改名为momo</div></td></tr><tr class="notion-simple-table-row notion-block-4f5c1cb0634a4466915f7c57ab5db884"><td class="" style="width:120px"><div class="notion-simple-table-cell">NEXT_PUBLIC_LINK</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://qq.com</div></td><td class="" style="width:449px"><div class="notion-simple-table-cell">将网站的默认网址改为https://qq.com （您在文章底部版权申明可看到修改后的效果）</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-block-05f8451901d843e38eec2f8545236315" data-id="05f8451901d843e38eec2f8545236315"><span><div id="05f8451901d843e38eec2f8545236315" class="notion-header-anchor"></div><a class="notion-hash-link" href="#05f8451901d843e38eec2f8545236315" title="如何知道key？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">如何知道key？</span></span></h3><div class="notion-text notion-block-327eca209ded4317b3ebd14223edf904">在<a class="notion-link" href="https://github.com/tangly1024/NotionNext/blob/main/blog.config.js" target="_blank" rel="noopener noreferrer">blog.config.js</a>文件中可以看到大量的配置项，配置项中的类似 <code class="notion-inline-code">process.env.</code><span class="notion-red"><code class="notion-inline-code"><b><span class="notion-inline-underscore">NEXT_PUBLIC_THEME</span></b></code></span><span class="notion-red"><b><span class="notion-inline-underscore"> </span></b></span>； 这样的结构中、加粗部分就是key的名字。例如以下配置表明当前仓库默认值主题为 <b>simple</b>（也可通过环境变量改为 hexo 等）。</div><div class="notion-text notion-block-017aa71291024546b24c9d5f365b0b61">如果需要将主题变为 hexo，则可以添加如下环境变量:</div><table class="notion-simple-table notion-block-80c8ef51c16542e690c173868edba9c9"><tbody><tr class="notion-simple-table-row notion-block-ff467a6026824dc9ad2d1b4fabc945b6"><td class="" style="width:120px"><div class="notion-simple-table-cell">key</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td></tr><tr class="notion-simple-table-row notion-block-951966a5fd7d4d68b6f14331d6a0da9c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><span class="notion-default"><span class="notion-inline-underscore">NEXT_PUBLIC_THEME</span></span></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">hexo</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-block-5cd13c8ef22f432fbe08b974fe869838" data-id="5cd13c8ef22f432fbe08b974fe869838"><span><div id="5cd13c8ef22f432fbe08b974fe869838" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5cd13c8ef22f432fbe08b974fe869838" title="获取key示例2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">获取key示例2</span></span></h4><div class="notion-text notion-block-52742d49f1aa4f14aeca0234f7c4909f">同样地，再以修改网站的联系邮箱地址为例，blog.config.js中修改邮箱地址的配置如下：</div><div class="notion-text notion-block-6b1df7940fa142d6bd1938df4b5c63ff">如果直接修改配置是这样的：</div><div class="notion-text notion-block-8b6c3dac008747d9890aa841110c6e43">若不想修改文件，只改环境变量，则添加以下环境变量即可</div><table class="notion-simple-table notion-block-5f9c862cfe0d4ef7b76fe63b371fa37a"><tbody><tr class="notion-simple-table-row notion-block-2e45a2f52794461ab059c16c2d8f7e2f"><td class="" style="width:120px"><div class="notion-simple-table-cell">key</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td></tr><tr class="notion-simple-table-row notion-block-cd22bc8de045457391f79bc59327d755"><td class="" style="width:120px"><div class="notion-simple-table-cell">NEXT_PUBLIC_CONTACT_EMAIL</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">123456@qq.com</div></td></tr></tbody></table></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-54bc60ef5f44438c96a30a57f363cfe2" data-id="54bc60ef5f44438c96a30a57f363cfe2"><span><div id="54bc60ef5f44438c96a30a57f363cfe2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#54bc60ef5f44438c96a30a57f363cfe2" title="VPS本地部署如何操作环境变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">VPS本地部署如何操作环境变量</span></span></h3><div class="notion-text notion-block-aef5277271ba4e7f94956391579bdc47">若您不是用vercel托管，而是在自己的服务器上部署，则可以直接在项目根目录的 .env.local 文件中添加环境变量即可：</div><div class="notion-blank notion-block-f779c3723bfb4618a262621327c091fa"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2306d43254ab4d2682853a8a620cf0bc" data-id="2306d43254ab4d2682853a8a620cf0bc"><span><div id="2306d43254ab4d2682853a8a620cf0bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2306d43254ab4d2682853a8a620cf0bc" title="4. 不同主题的个性化配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4. 不同主题的个性化配置</span></span></h2><div class="notion-text notion-block-56da9674ce574677bb2037695522755d">每个主题都有自己个性化的配置，例如Hexo这个主题首页有个专属的欢迎语</div><blockquote class="notion-quote notion-block-2895132452f947b98dd36bd676e63611"><div>hi，我是一个程序员</div></blockquote><div class="notion-text notion-block-db4bd65f01504886b7fd0602dd3d2a4e">这该如何更改？需要访问这个主题的说明文档，请参阅此文档教程的 <a class="notion-link" href="https://docs.tangly1024.com/article/notion-next-themes" target="_blank" rel="noopener noreferrer">《⭐️主题配置》</a>部分</div><div class="notion-blank notion-block-354f93b9208b80c296c7e0da67dcec91"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Waline]]></title>
            <link>https://docs.tangly1024.com/article/notion-next-waline</link>
            <guid>https://docs.tangly1024.com/article/notion-next-waline</guid>
            <pubDate>Thu, 29 Jun 2023 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1472030d77904e969da8e785befc1b4d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-brown_background_co notion-block-35ef93b9208b806bbdfec771d9cf69e5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="👉">👉</span></div><div class="notion-callout-text"><div class="notion-text notion-block-35ef93b9208b80b68f16cd45547c27ab">注意，本文中介绍的 LeanCloud 即将停止服务，因此文档已经过期，请参考Waline 官方文档部署</div><div class="notion-row"><a class="notion-bookmark notion-block-35ef93b9208b80c993a2fe0ac63ba689" href="https://waline.js.org/guide/deploy/vercel.html#%E9%83%A8%E7%BD%B2%E6%9C%8D%E5%8A%A1%E7%AB%AF" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Vercel 部署</div><div class="notion-bookmark-description">欢迎使用 Waline，只需几个步骤，你就可以在你的网站中启用 Waline 提供评论与浏览量服务。 部署服务端 VercelVercel 点击上方按钮，跳转至 Vercel 进行 Server 端部署。 注 如果你未登录的话，Vercel 会让你注册或登录，请使用 GitHub 账户进行快捷登录。 输入一个你喜欢的 Vercel 项目名称并点击 Cr...</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwaline.js.org%2Ffavicon.ico?table=block&amp;id=35ef93b9-208b-80c9-93a2-fe0ac63ba689&amp;t=35ef93b9-208b-80c9-93a2-fe0ac63ba689" alt="Vercel 部署" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://waline.js.org/guide/deploy/vercel.html#%E9%83%A8%E7%BD%B2%E6%9C%8D%E5%8A%A1%E7%AB%AF</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fvercel.com%2Fbutton?table=block&amp;id=35ef93b9-208b-80c9-93a2-fe0ac63ba689&amp;t=35ef93b9-208b-80c9-93a2-fe0ac63ba689" alt="Vercel 部署" loading="lazy" decoding="async"/></div></a></div></div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-7a196a38ed584f0cac676b58b4da80a3" data-id="7a196a38ed584f0cac676b58b4da80a3"><span><div id="7a196a38ed584f0cac676b58b4da80a3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7a196a38ed584f0cac676b58b4da80a3" title="1. 注册LeanCloud"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. 注册LeanCloud</span></span></h2><div class="notion-text notion-block-3d7705d57ac2449dae56cddafc4ad25c">Valine和Waline两个插件均要借助LeanCloud提供的云函数，云数据存储等功能，对于普通开发者来说免费版已经足够使用。</div><div class="notion-callout notion-gray_background_co notion-block-a99770658e5c4253b0f59dcf4ca17963"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">若您使用的是Zeabur的部署方案，则不需要额外注册一个LeanCloud。</div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-fd7526d17b79486fa9674006f8e9ab22" data-id="fd7526d17b79486fa9674006f8e9ab22"><span><div id="fd7526d17b79486fa9674006f8e9ab22" class="notion-header-anchor"></div><a class="notion-hash-link" href="#fd7526d17b79486fa9674006f8e9ab22" title="获取APP ID 和 APP Key "><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">获取APP ID 和 APP Key </span></span></h3><details class="notion-toggle notion-block-d7519640c3854184ad2ece8d3c48d8a3"><summary>1.请先<a class="notion-link" href="https://leancloud.cn/dashboard/login.html#/signin" target="_blank" rel="noopener noreferrer">登录</a>或<a class="notion-link" href="https://leancloud.cn/dashboard/login.html#/signup" target="_blank" rel="noopener noreferrer">注册</a> <code class="notion-inline-code">LeanCloud</code>, 进入<a class="notion-link" href="https://leancloud.cn/dashboard/applist.html#/apps" target="_blank" rel="noopener noreferrer">控制台</a>后点击左下角<a class="notion-link" href="https://leancloud.cn/dashboard/applist.html#/newapp" target="_blank" rel="noopener noreferrer">创建应用</a>：</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d52de363a2b84e7aa5e3079fb549332d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:384px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://i.loli.net/2019/06/21/5d0c995c86fac81746.jpg?spaceId=6c096b44-beb9-48ee-8f92-1efdde47f3a3&amp;t=d52de363-a2b8-4e7a-a5e3-079fb549332d" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-e48d9c91da8441e9aa9de54bb7ec6659"><summary>2.进入刚刚创建的应用，选择左下角的<code class="notion-inline-code">设置</code>&gt;<code class="notion-inline-code">应用Key</code>，查看你的<code class="notion-inline-code">APP ID</code>和<code class="notion-inline-code">APP Key</code>。</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a9b2c2a7295a491fa72943ba1b9910ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:480px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fb287a9c0-b80f-4e79-931f-4c7cd6e1a4c6%2FUntitled.png?table=block&amp;id=a9b2c2a7-295a-491f-a729-43ba1b9910ac&amp;t=a9b2c2a7-295a-491f-a729-43ba1b9910ac&amp;width=480&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-4081f0ff627942a78dbf97fc9952fc95" data-id="4081f0ff627942a78dbf97fc9952fc95"><span><div id="4081f0ff627942a78dbf97fc9952fc95" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4081f0ff627942a78dbf97fc9952fc95" title="2.Waline部署方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.Waline部署方式</span></span></h2><details class="notion-toggle notion-block-385105cad52b40d887db5089cdafadce"><summary>部署Waline方式1： Vercel</summary><div><div class="notion-text notion-block-8d81060bb8194e9c90a087925dd3ed5f">这种方案我目前遇到了点问题(详见下文部署踩坑部分)，问题原因是<a class="notion-link" href="https://github.com/walinejs/waline/tree/main/example" target="_blank" rel="noopener noreferrer">官方代码</a>不支持跨域，问题暂未解决。</div><details class="notion-toggle notion-block-cade64e2c397446b97f6f3fb60ecb340"><summary>Vercel踩坑说明 （点击展开）</summary><div><div class="notion-text notion-block-0cdeeb8468fe4984897850054e763362">我不确定是否你也会遇到相同的问题：</div><div class="notion-text notion-block-b8f90ce30d4a447b93d258f9cf8ce61a">用vercel部署的评论插件，在电脑端进行评论时会提示“<span class="notion-red">网络请求错误，由于CORS跨域错误，不允许请求waline服务</span>” 。查看Vercedl后台日志则显示“响应超时”；同时，在手机端评论也提示错误“ Failed to fetch”。</div><div class="notion-text notion-block-51f3feb953f74585a8f1b89d7e92b98c">产生的原因有两种</div><ol start="1" class="notion-list notion-list-numbered notion-block-bb83eb413bdb4be1b0dc1db7f3bbf360" style="list-style-type:decimal"><li>URL配置错误，<a class="notion-link" href="https://waline.tangly1024.com/" target="_blank" rel="noopener noreferrer">https://waline.tangly1024.com</a> 结尾不能有斜杆。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-53c8b063959f49afa95cb1b4912d4e49" style="list-style-type:decimal"><li><code class="notion-inline-code">Vercel</code>或<code class="notion-inline-code">域名服务商</code>的问题导致触发了跨域限制。</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-fa2501671fe94c73bf8119c96b1c922c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1c47811d-fa89-4681-a5f9-d671c39544e3%2FUntitled.png?table=block&amp;id=fa250167-1fe9-4c73-bf81-19c96b1c922c&amp;t=fa250167-1fe9-4c73-bf81-19c96b1c922c&amp;width=528&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-18d9e17eb05c48e0a0255477d4905b80"><li>1. 点<span class="notion-orange"><b><a class="notion-link" href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Ftangly1024%2Fwaline&amp;demo-title=WalineForNotionNext" target="_blank" rel="noopener noreferrer">此链接</a></b></span>一键部署waline。</li></ul><details class="notion-toggle notion-block-af3b40850258412dad8fe30c627c7d30"><summary>2. 配置环境变量 （点击展开）</summary><div><ul class="notion-list notion-list-disc notion-block-a7f739eb59264fea99d103c9990481f0"><li>进入环境变量配置页面</li><ul class="notion-list notion-list-disc notion-block-a7f739eb59264fea99d103c9990481f0"><div class="notion-text notion-block-e2c068201f07409caa1ba3858e00f6be">在Vercel后台刚部署好的Waline项目中，找到 <b>Settings</b> →  <b>Environment Variables</b>：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-6285e6d53c9c498eaad647de07542aef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F080306ed-2e4a-48b8-a112-46c4e71a9f9d%2FB60A41AC-6BC2-4F91-B3FB-FC742AD1BB27.png?table=block&amp;id=6285e6d5-3c9c-498e-aad6-47de07542aef&amp;t=6285e6d5-3c9c-498e-aad6-47de07542aef&amp;width=672&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-c106710c0a4440e39438730764050f5d"><li>配置三个环境变量 <code class="notion-inline-code">LEAN_ID</code>，<code class="notion-inline-code">LEAN_KEY</code> ， <code class="notion-inline-code">LEAN_MASTER_KEY</code> 。(它们的值分别对应上一步在 LeanCloud 中获得的 <code class="notion-inline-code">APP ID</code>, <code class="notion-inline-code">APP KEY</code>, <code class="notion-inline-code">Master Key</code>。)，配置变量如下图：</li><ul class="notion-list notion-list-disc notion-block-c106710c0a4440e39438730764050f5d"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0ee45b00b3b64452b219ced454b3fbac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc5dd624f-d1f8-4810-89be-0c2f7490cd2b%2FUntitled.png?table=block&amp;id=0ee45b00-b3b6-4452-b219-ced454b3fbac&amp;t=0ee45b00-b3b6-4452-b219-ced454b3fbac&amp;width=1626&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-callout notion-gray_background_co notion-block-d4d301d4dffd408f860430f806571592"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">注意：
如果你使用 LeanCloud 国内版，请额外配置 <code class="notion-inline-code">LEAN_SERVER</code> 环境变量，值为你绑定好的域名。否则可能会提示错误：”<code class="notion-inline-code">serverURL option is required for apps from CN region</code>“，<a class="notion-link" href="https://github.com/tangly1024/NotionNext/issues/308#issuecomment-1157330084" target="_blank" rel="noopener noreferrer">详见此ISSUE</a>。</div></div></ul></ul><ul class="notion-list notion-list-disc notion-block-eda3626ed6844287b19d59a74cd6f7ce"><li>最后要<code class="notion-inline-code">redeploy</code>这个项目使配置生效。</li><ul class="notion-list notion-list-disc notion-block-eda3626ed6844287b19d59a74cd6f7ce"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-08a475f0169b43329d433e64296e3c6d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F26e282ef-72cc-4a2a-82e2-0a76591c1aa6%2FUntitled.png?table=block&amp;id=08a475f0-169b-4332-9d43-3e64296e3c6d&amp;t=08a475f0-169b-4332-9d43-3e64296e3c6d&amp;width=2464&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul></div></details><details class="notion-toggle notion-block-44ec5aeee7aa4e04afb21a6cae89c6b4"><summary>3. 找到你的waline访问地址</summary><div><div class="notion-text notion-block-f723d24208c04e74a91819dac31fbd92">在Vercel中找到访问Overview，可以通过Visit、或者DOMAINS下的域名访问到你的Waline服务，（当然你也可以选择自己进行域名映射）。如果有问题参阅<a class="notion-link" href="https://waline.js.org/guide/get-started.html#vercel-%E9%83%A8%E7%BD%B2-%E6%9C%8D%E5%8A%A1%E7%AB%AF" target="_blank" rel="noopener noreferrer">官方文档</a>，</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-ff1e465a4f424edf9740ca8fcab7408e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F74c98705-2ba0-48a7-9096-cb048eea1653%2FUntitled.png?table=block&amp;id=ff1e465a-4f42-4edf-9740-ca8fcab7408e&amp;t=ff1e465a-4f42-4edf-9740-ca8fcab7408e&amp;width=624&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-924f85cf172d46278ebb69fb81690035"><summary>部署Waline方式2： DETA</summary><div><div class="notion-text notion-block-7fb9c95661884577aa6bacb4b5b245d1">当你的Vercel服务有异常可以尝试此部署替代方案。</div><ul class="notion-list notion-list-disc notion-block-a4f3eb6c3f724b20aacfa8a0d30c76e0"><li>1.点击 <a class="notion-link" href="https://go.deta.dev/deploy?repo=https://github.com/walinejs/deta-starter" target="_blank" rel="noopener noreferrer">一键部署</a>，未注册的需要注册登录。</li></ul><ul class="notion-list notion-list-disc notion-block-60e1e3a3b18a42b2953ab3819184e44b"><li>2.配置相关环境变量信息，点击Deploy按钮进行部署。</li><ul class="notion-list notion-list-disc notion-block-60e1e3a3b18a42b2953ab3819184e44b"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-05d0e1f5e8014c5480028fd063ad24e4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:384px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8ba32358-1a8f-4338-ba2b-dfb81ce315f9%2FUntitled.png?table=block&amp;id=05d0e1f5-e801-4c54-8002-8fd063ad24e4&amp;t=05d0e1f5-e801-4c54-8002-8fd063ad24e4&amp;width=384&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-8583d1426ad84f5c9efa407edc6bcc29"><li>3. 部署后在后台如图右上角获取你的访问地址，将其配置到NotionNext中</li><ul class="notion-list notion-list-disc notion-block-8583d1426ad84f5c9efa407edc6bcc29"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-03a4ae5f81814b0e9d18d1c9d4c560c9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:480px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F47a252bb-f094-48d5-bb03-a64b1977328b%2FUntitled.png?table=block&amp;id=03a4ae5f-8181-4b0e-9d18-d1c9d4c560c9&amp;t=03a4ae5f-8181-4b0e-9d18-d1c9d4c560c9&amp;width=480&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-blank notion-block-6ee3160dd6dc439399b20eb045d5867d"> </div></div></details><details class="notion-toggle notion-block-dea9604b51ca4e749f9bd66fc9042689"><summary>部署Waline方式3： Railway</summary><div><div class="notion-text notion-block-96e4be7167af42b8950331316a393859">此方式方式请参考博主<a class="notion-link" href="https://www.dsuper.xyz" target="_blank" rel="noopener noreferrer">D_super</a>的这篇文章配置《<a class="notion-link" href="https://www.dsuper.xyz/article/waline-setting" target="_blank" rel="noopener noreferrer">NotionNext博客Waline评论系统</a>》，文章步骤非常详尽👍</div></div></details><details class="notion-toggle notion-block-c1cfd048aa744e9cb21acdab50865d8e"><summary>其它更多部署方式</summary><div><div class="notion-text notion-block-796f997e695c4a56b68bc97730ac5af2">按照官方文档，有 Vercel、Docker、Deta、CloudBase、Railway、百度云函数、阿里云函数等多种部署方式。以下我将介绍Vercel和Deta两种部署，其他的可以参阅<a class="notion-link" href="https://waline.js.org/guide/server/intro.html" target="_blank" rel="noopener noreferrer">官方文档</a>:</div><div class="notion-row"><a class="notion-bookmark notion-block-aaacd6cc3a6548458de37e7702ac5b73" href="https://waline.js.org/guide/server/intro.html" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">服务端介绍</div><div class="notion-bookmark-description">除了在 Vercel 免费部署外，你可以通过 docker 进行部署或直接部署在自托管环境上。详见 独立部署 。 服务端大部分的配置可以通过通过环境变量进行配置，你也可以在主入口文件中配置一些高级选项。 有关配置的详细信息，详见 参考 → 服务端环境变量 和 参考 → 服务端配置 。 我们支持多种方式在用户评论时向用户或博主发出通知，详见 评论通知 。 我们支持社交帐号登录，目前支持 GitHub，Twitter, Facebook。 提示 我们计划在未来版本添加更多的社交应用支持，敬请期待。 除了官方默认的 LeanCloud 之外，Waline 还支持多种数据库，包括 MySQL, PostgreSQL, SQLite 以及 MongoDB。 你只需配置对应的数据库的环境变量，Waline 会自动根据你配置的环境变量切换到对应的数据存储服务。 详情请见 多数据库支持 。</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwaline.js.org%2Fassets%2Ficon%2Fchrome-192.png?table=block&amp;id=aaacd6cc-3a65-4845-8de3-7e7702ac5b73&amp;t=aaacd6cc-3a65-4845-8de3-7e7702ac5b73" alt="服务端介绍" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://waline.js.org/guide/server/intro.html</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fwaline.js.org%2Flogo.png?table=block&amp;id=aaacd6cc-3a65-4845-8de3-7e7702ac5b73&amp;t=aaacd6cc-3a65-4845-8de3-7e7702ac5b73" alt="服务端介绍" loading="lazy" decoding="async"/></div></a></div></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-f3386f7b7fe24abea7f17a1c3c7e2ced" data-id="f3386f7b7fe24abea7f17a1c3c7e2ced"><span><div id="f3386f7b7fe24abea7f17a1c3c7e2ced" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f3386f7b7fe24abea7f17a1c3c7e2ced" title="部署完成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部署完成</span></span></h3><div class="notion-text notion-block-dc387730f011405d91bcffbb3d6f654d">Waline本身是一个独立的评论页面，可以嵌入到任何网页中，例如我部署好的waline服务，映射为二级域名后地址如下：<code class="notion-inline-code">https://waline.tangly1024.com</code> 。</div><div class="notion-blank notion-block-66d00f08e4ee47f58db019deec3deba0"> </div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-f30ae34d80264d2087a0d623e958d61d" data-id="f30ae34d80264d2087a0d623e958d61d"><span><div id="f30ae34d80264d2087a0d623e958d61d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f30ae34d80264d2087a0d623e958d61d" title="Waline其他自定义配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Waline其他自定义配置</span></span></h4><div class="notion-text notion-block-f2a7e97af8b54564b92f591c0477b66d">waline支持大量的自定义配置，请参考官方文档的说明：</div><div class="notion-row"><a class="notion-bookmark notion-block-63ee73528f5843c9b120acf0ed0ba474" href="https://waline.js.org/reference/env.html#%E4%B8%BB%E8%A6%81%E9%85%8D%E7%BD%AE" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">服务端环境变量</div><div class="notion-bookmark-description">你可以通过下面的环境变量对 Waline 服务端进行配置。 注意 环境变量在更新后必须 重新部署 才能生效。 Vercel 需要在 Settings - Environment Variables 中进行设置。 等级标签 根据设置的等级条件以及用户的评论数，会为评论者增加等级标签。该功能默认关闭，可以通过配置环境变量 LEVELS 开启该功能。配置的形式为一串给定的数的逗号拼接，例如 0,10,20,50,100,200 表示的就是： 除了可以自定义等级判断规则之外，我们还可以在客户端自定义等级标签，详见 等级标签 。 默认只提供了 6 级文案，但并不表示只能有 6 个级别。具体的等级上限是根据你设置的等级判断规则来的。增加新的等级建议自己配置上等级对应的文案，没有提供文案的话默认展示的就是 Level 10 这样的默认文案。 用户注册和评论的邮件通知都会用到邮件服务。配置邮件服务相关变量后，用户注册会增加邮箱验证码确认相关的操作，用来防止恶意的注册。 提示 可以在 查看支持的服务商。 SMTP_SERVICE 和 ( SMTP_HOST、 SMTP_PORT) 任选其一即可，如果没有在列表中知道对应的 SMTP_SERVICE 的话则需要配 SMTP_HOST 和 SMTP_PORT ，它们一般可以在邮箱的设置中找到。 SMTP 的用户名通常均支持用户的完整邮箱，而密码大多同邮箱密码。 请特别注意部分邮箱 (如 163、qq 邮箱) 使用单独的 SMTP 密码。</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fwaline.js.org%2Fassets%2Ficon%2Fchrome-192.png?table=block&amp;id=63ee7352-8f58-43c9-b120-acf0ed0ba474&amp;t=63ee7352-8f58-43c9-b120-acf0ed0ba474" alt="服务端环境变量" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://waline.js.org/reference/env.html#%E4%B8%BB%E8%A6%81%E9%85%8D%E7%BD%AE</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fwaline.js.org%2Flogo.png?table=block&amp;id=63ee7352-8f58-43c9-b120-acf0ed0ba474&amp;t=63ee7352-8f58-43c9-b120-acf0ed0ba474" alt="服务端环境变量" loading="lazy" decoding="async"/></div></a></div><div class="notion-blank notion-block-5948d13faa264c21918146a43911a211"> </div><ul class="notion-list notion-list-disc notion-block-714d0aa9be5d4c7ebd0b946f620db04b"><li>垃圾评论过滤</li><ul class="notion-list notion-list-disc notion-block-714d0aa9be5d4c7ebd0b946f620db04b"><div class="notion-text notion-block-4d45a2ed7c604f5eb65ff3139b5ba601">Valine和Waline都用到akismet的垃圾评论过滤功能。在官网<a class="notion-link" href="https://akismet.com/account/" target="_blank" rel="noopener noreferrer">https://akismet.com</a>注册账号可以获取免费的key，</div><div class="notion-text notion-block-f4a1608b055a417286ad42f565e4ca02">Valine需要在LeanCloud中配置<code class="notion-inline-code">AKISMET_KEY</code>变量，而Waline则是在服务的后台<code class="notion-inline-code">配置环境</code>变量。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-de4943df4dc84d00a9a92a19dcd51835"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff6a19b43-9627-4f4a-92c4-556bce12dd24%2FUntitled.png?table=block&amp;id=de4943df-4dc8-4d00-a9a9-2a19dcd51835&amp;t=de4943df-4dc8-4d00-a9a9-2a19dcd51835&amp;width=672&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-blank notion-block-96b3914e28434c31b266bafa58567644"> </div><ul class="notion-list notion-list-disc notion-block-24bb5e9d169141d3a5a19669c8e7833a"><li>邮件通知</li><ul class="notion-list notion-list-disc notion-block-24bb5e9d169141d3a5a19669c8e7833a"><div class="notion-text notion-block-21d20bf16cf849389b5eb5a11df1364c">推荐搭配使用 <a class="notion-link" href="https://github.com/DesertsP/Valine-Admin" target="_blank" rel="noopener noreferrer">Valine-Admin</a> 几分钟就可以部署管理后台，从而支持Valine和Waline的邮件通知，部署配置方式不在此文赘述，可以请参阅 官方文档中的“<a class="notion-link" href="https://github.com/DesertsP/Valine-Admin#%E4%BA%91%E5%BC%95%E6%93%8E%E4%B8%80%E9%94%AE%E9%83%A8%E7%BD%B2" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore"><b>云引擎一键部署</b></span></a>”部分.</div><div class="notion-callout notion-gray_background_co notion-block-ddee668bc644417bad38a290a96585ff"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">Waline的网络请求稳定性不如Valine，而且Valine-Admin支持在LeanCloud后台中查看详细的邮件发送记录，比较便于调试和排查问题</div></div></ul></ul><ul class="notion-list notion-list-disc notion-block-d0180c6a886e4c678829e1fdf79f8754"><li>LeanCloud后台查看邮件发送状态如下图（如果邮件发送失败也可以在这里定位错误）：</li><ul class="notion-list notion-list-disc notion-block-d0180c6a886e4c678829e1fdf79f8754"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-5346837d433642d18cb213ec37a10f7f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F33a5bb97-f4e0-456e-a62c-20ee2269277d%2FUntitled.png?table=block&amp;id=5346837d-4336-42d1-8cb2-13ec37a10f7f&amp;t=5346837d-4336-42d1-8cb2-13ec37a10f7f&amp;width=3210&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-b301a109c95347dc98a6b4e441a6a832" data-id="b301a109c95347dc98a6b4e441a6a832"><span><div id="b301a109c95347dc98a6b4e441a6a832" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b301a109c95347dc98a6b4e441a6a832" title="3.NotionNext中配置Waline"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.NotionNext中配置Waline</span></span></h2><div class="notion-text notion-block-f3b97dcbf6674f4784ad5e5864a910e0">在<b>NotionNext</b>(版本需要≥3.3.9)中开启Waline：在Vercel环境变量中添加 一个环境变量：</div><table class="notion-simple-table notion-block-86245f92881143dbb55c67ff273b39fe"><tbody><tr class="notion-simple-table-row notion-block-3ecca3d8c4d34b3ba6cdbdce5e3ee3f0"><td class="" style="width:264px"><div class="notion-simple-table-cell">字段名</div></td><td class="" style="width:182px"><div class="notion-simple-table-cell"> 说明</div></td><td class="" style="width:192px"><div class="notion-simple-table-cell">是否必填</div></td></tr><tr class="notion-simple-table-row notion-block-0b7231aca02f4a62ba0956eda4dd0821"><td class="" style="width:264px"><div class="notion-simple-table-cell"><code class="notion-inline-code">NEXT_PUBLIC_WALINE_SERVER_URL</code>  </div></td><td class="" style="width:182px"><div class="notion-simple-table-cell"> 你的<code class="notion-inline-code">waline访问地址</code></div></td><td class="" style="width:192px"><div class="notion-simple-table-cell">是</div></td></tr></tbody></table><div class="notion-text notion-block-a9432d3aa6264a86b678843ed7553e1f"><code class="notion-inline-code">waline访问地址</code> 来自你上一步中部署好的Waline页面，他是一个独立的评论页面。</div><div class="notion-text notion-block-fec3b06b72e345fb89174433fd9af2d1">配置好上述变量后，重新部署即可。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudFlarePage静态部署]]></title>
            <link>https://docs.tangly1024.com/article/notion-next-cloud-flare</link>
            <guid>https://docs.tangly1024.com/article/notion-next-cloud-flare</guid>
            <pubDate>Mon, 13 Mar 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[cloudflare支持纯静态导出的notionnext，兼容性不那么好，但不失为一种选择。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-35ace93ecb074cd79b88411303ed98b6"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-7d9dd495a69b4af78641fec9f2e3a702" data-id="7d9dd495a69b4af78641fec9f2e3a702"><span><div id="7d9dd495a69b4af78641fec9f2e3a702" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7d9dd495a69b4af78641fec9f2e3a702" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h2><div class="notion-callout notion-gray_background_co notion-block-8df1df52e0194e989d26b7abefa31408"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-cb03bcc51b74414fb727e29f944c4fd7">CloudFlare方案适用于站点访问量大，而文章更新不频繁的用户。
目前是我个人在用的方案。</div></div></div><div class="notion-text notion-block-0667e5d1661243418edc785086abd4e3">参考haixin的文章<a class="notion-link" href="https://www.haixin.io/article/notion-next-on-cf" target="_blank" rel="noopener noreferrer">《NotionNext建站-cloudflare版》</a>，这里做了优化</div><div class="notion-text notion-block-29f39047ef8b4ee18c2baacb9e864230">部署效果预览</div><div class="notion-row"><a class="notion-bookmark notion-block-102d88df0883480488de2d0f43a10720" href="https://cloudflare.tangly1024.com/" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Notion Blog | 一个NotionNext搭建的博客</div><div class="notion-bookmark-description">一个NotionNext搭建的博客</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fcloudflare.tangly1024.com%2Ffavicon.ico?table=block&amp;id=102d88df-0883-4804-88de-2d0f43a10720&amp;t=102d88df-0883-4804-88de-2d0f43a10720" alt="Notion Blog | 一个NotionNext搭建的博客" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://cloudflare.tangly1024.com/</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/images/page-cover/nasa_robert_stewart_spacewalk_2.jpg" alt="Notion Blog | 一个NotionNext搭建的博客" loading="lazy" decoding="async"/></div></a></div><div class="notion-callout notion-gray_background_co notion-block-fd72da8fa8a14668a3ad52859619eaeb"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="❓">❓</span></div><div class="notion-callout-text"><div class="notion-text notion-block-4129084a336a42a4921844ceacdfc2fc">CloudFlare版本是静态导出的，<b>不支持实时更新文章</b>，每次更改Notion内容后请手动部署站点。若需要实时动态更新请使用Vercel\Netlify\Zeabur\VPS部署方案。</div></div></div><div class="notion-callout notion-gray_background_co notion-block-25bf93b9208b809ca93dce161993f568"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-25bf93b9208b80219500fd4ac2ef3f93">CloudFlare部署方案，以及其他所有使用 静态导出的方案，默认都不支持NotionNext自带的搜索功能，必须集成Algolia插件才能实现全文搜索。

详情参考Algolia全文搜索插件获取帮助:</div><div class="notion-row"><a class="notion-bookmark notion-block-25bf93b9208b80a2828ecd0179f96135" href="https://docs.tangly1024.com/article/notion-next-algolia" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Algolia搜索引擎 | NotionNext帮助手册</div><div class="notion-bookmark-description">NotionNext如何配置Algolia</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fdocs.tangly1024.com%2Ffavicon.ico?table=block&amp;id=25bf93b9-208b-80a2-828e-cd0179f96135&amp;t=25bf93b9-208b-80a2-828e-cd0179f96135" alt="Algolia搜索引擎 | NotionNext帮助手册" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://docs.tangly1024.com/article/notion-next-algolia</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F01c82885-32ed-4da6-8c06-cf00a2df74c8%2Farhs6-ymx4f.webp?table=collection&amp;id=308a7afa-2d3d-46a4-b8ea-19debe72385f&amp;t=308a7afa-2d3d-46a4-b8ea-19debe72385f&amp;width=1080&amp;cache=v2&amp;t=25bf93b9-208b-80a2-828e-cd0179f96135" alt="Algolia搜索引擎 | NotionNext帮助手册" loading="lazy" decoding="async"/></div></a></div><figure class="notion-asset-wrapper notion-asset-wrapper-embed notion-block-336f93b9208b80e59beffa0e153b4d9f"></figure></div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-d4b1f02c61ae43c7bd29d07a9f92e151" data-id="d4b1f02c61ae43c7bd29d07a9f92e151"><span><div id="d4b1f02c61ae43c7bd29d07a9f92e151" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d4b1f02c61ae43c7bd29d07a9f92e151" title="开始"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">开始</span></span></h2><div class="notion-text notion-block-37dd9972fc444dacab8875dbd4b30df2">访问CloudFlarePage</div><div class="notion-row"><a class="notion-bookmark notion-block-0e0ca42e54774400a8bba5724b510487" href="https://pages.cloudflare.com/" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Cloudflare Pages</div><div class="notion-bookmark-description">Build your next application with Cloudflare Pages</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fpages.cloudflare.com%2Ffavicon.ico?table=block&amp;id=0e0ca42e-5477-4400-a8bb-a5724b510487&amp;t=0e0ca42e-5477-4400-a8bb-a5724b510487" alt="Cloudflare Pages" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://pages.cloudflare.com/</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fblog.cloudflare.com%2Fcontent%2Fimages%2F2020%2F12%2Ftwitter-shared-link-18.png?table=block&amp;id=0e0ca42e-5477-4400-a8bb-a5724b510487&amp;t=0e0ca42e-5477-4400-a8bb-a5724b510487" alt="Cloudflare Pages" loading="lazy" decoding="async"/></div></a></div><div class="notion-blank notion-block-ce1cd5e7dc374c31beeb9c9233cc1236"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-47a47a05fee24c67b7183a18526d0e39" data-id="47a47a05fee24c67b7183a18526d0e39"><span><div id="47a47a05fee24c67b7183a18526d0e39" class="notion-header-anchor"></div><a class="notion-hash-link" href="#47a47a05fee24c67b7183a18526d0e39" title="创建项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">创建项目</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b268ff5efb4446c5affdbc8df83b530b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:720px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa755c05d-ce7e-492b-9286-0f9627efcc03%2FUntitled.png?table=block&amp;id=b268ff5e-fb44-46c5-affd-bc8df83b530b&amp;t=b268ff5e-fb44-46c5-affd-bc8df83b530b&amp;width=720&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-callout notion-brown_background_co notion-block-336f93b9208b802582e3e850c990cf44"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="⚠️">⚠️</span></div><div class="notion-callout-text"><div class="notion-text notion-block-336f93b9208b8043be1ee4c79141c414">注意，2026年新版的Cloudflare 默认引导部署Workers，但是NotionNext目前的代码不支持Workers动态。 暂时还是选择使用Pages静态部署：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b802fb516ec9cad84cd4c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:384px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2d9b1994-9717-41d8-a38c-0411c18f697e%3Aimage.png?table=block&amp;id=336f93b9-208b-802f-b516-ec9cad84cd4c&amp;t=336f93b9-208b-802f-b516-ec9cad84cd4c" alt="部署页面底部有个小小的Pages" loading="lazy" decoding="async"/><figcaption class="notion-asset-caption">部署页面底部有个小小的Pages</figcaption></div></figure></div></div><ol start="1" class="notion-list notion-list-numbered notion-block-67b97c086df4481d83da81f1a44ecdb9" style="list-style-type:decimal"><li>直接连接git</li><ol class="notion-list notion-list-numbered notion-block-67b97c086df4481d83da81f1a44ecdb9" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e4689f5be2748c68216ff19f8fd8384"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:768px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F65d76318-f910-4f86-8d53-6bb905e24e2a%2FUntitled.png?table=block&amp;id=2e4689f5-be27-48c6-8216-ff19f8fd8384&amp;t=2e4689f5-be27-48c6-8216-ff19f8fd8384&amp;width=768&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-a1e01f1cb6094b9188d0929649879cf2" style="list-style-type:decimal"><li>导入项目</li><ol class="notion-list notion-list-numbered notion-block-a1e01f1cb6094b9188d0929649879cf2" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d419df440d44246b6ef08382b11d877"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F022c0d20-5cf4-4516-9127-c6e9f56578ad%2FUntitled.png?table=block&amp;id=1d419df4-40d4-4246-b6ef-08382b11d877&amp;t=1d419df4-40d4-4246-b6ef-08382b11d877&amp;width=679.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-427f2d904d804899b896721f2881f25c" style="list-style-type:decimal"><li>选择分支</li><ol class="notion-list notion-list-numbered notion-block-427f2d904d804899b896721f2881f25c" style="list-style-type:lower-alpha"><div class="notion-text notion-block-2677727a4a514e1b9d23061a775b6a3a">分支选择<code class="notion-inline-code"> deploy/cloudflare-support</code> ；</div><div class="notion-text notion-block-0b0f969fb1e7466dbb86e2dcaec6447b">在4.0.9之后的版本中，可以直接使用<code class="notion-inline-code">main</code>分支部署，无需切换分支</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-cd118a45370445828359490c6988b877"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fef41d434-9a32-4fc5-a37f-55132a999535%2FUntitled.png?table=block&amp;id=cd118a45-3704-4582-8359-490c6988b877&amp;t=cd118a45-3704-4582-8359-490c6988b877&amp;width=624&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-block-c28dbfb41d484afa999d055b17fb2a2f" data-id="c28dbfb41d484afa999d055b17fb2a2f"><span><div id="c28dbfb41d484afa999d055b17fb2a2f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c28dbfb41d484afa999d055b17fb2a2f" title="配置参数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置参数</span></span></h3><div class="notion-text notion-block-51cd5dfc4b214b8bb7d9ff09b3ae80b3">来到页面下方的构建设置：</div><ul class="notion-list notion-list-disc notion-block-76f4a3c638e6480eaa0dd2848e74d57d"><li>构建命令填</li><ul class="notion-list notion-list-disc notion-block-76f4a3c638e6480eaa0dd2848e74d57d"></ul></ul><ul class="notion-list notion-list-disc notion-block-6360340134704247bd930d7e50dfd3dc"><li>输出根目录 <code class="notion-inline-code">out</code></li><ul class="notion-list notion-list-disc notion-block-6360340134704247bd930d7e50dfd3dc"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-28ebdcc486ad4926b268aa902a066593"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Feecb1290-249a-46ef-aab5-782cf24310c1%2FUntitled.png?table=block&amp;id=28ebdcc4-86ad-4926-b268-aa902a066593&amp;t=28ebdcc4-86ad-4926-b268-aa902a066593&amp;width=651.9375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-cb9c62ec18594602a01879cff74a5eaf" data-id="cb9c62ec18594602a01879cff74a5eaf"><span><div id="cb9c62ec18594602a01879cff74a5eaf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cb9c62ec18594602a01879cff74a5eaf" title="环境变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">环境变量</span></span></h3><div class="notion-text notion-block-6cb6c5ca3910448c8c8c5f3cdfb7a244">配置效果如下</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b80a7b425ecbd0dcf0ef5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae7366ad2-43d4-449f-aed4-2109c7a7a716%3Aimage.png?table=block&amp;id=336f93b9-208b-80a7-b425-ecbd0dcf0ef5&amp;t=336f93b9-208b-80a7-b425-ecbd0dcf0ef5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-ded3ca2cfeae423e9b91b33aea5d339c">配置说明，新版本的NotionNext中，NODE_VERSION要更新为<code class="notion-inline-code"><b>20</b></code>版本。</div><table class="notion-simple-table notion-block-2c7276df3ea74d6e80ccbdcc51cd9867"><tbody><tr class="notion-simple-table-row notion-block-36f00a4e06bc43918603abeb05e1078b"><td class="" style="width:120px"><div class="notion-simple-table-cell">变量名称</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"> 值</div></td></tr><tr class="notion-simple-table-row notion-block-09958f61b8034a51ad2023839db05c4b"><td class="" style="width:120px"><div class="notion-simple-table-cell">NODE_VERSION</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">20</div></td></tr><tr class="notion-simple-table-row notion-block-1f93618fad0d467c97b5be9eb68a7ae0"><td class="" style="width:120px"><div class="notion-simple-table-cell">VERCEL_ENV</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">production</div></td></tr><tr class="notion-simple-table-row notion-block-b1796e6dce824846bb57ea44d4e0f956"><td class="" style="width:120px"><div class="notion-simple-table-cell">NOTION_PAGE_ID</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">{您的Notion页面id}</div></td></tr></tbody></table><div class="notion-text notion-block-e8d91c66c0474650b56eff2a40b567df">最后点击保存并部署即可。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-5f4bc4d3c02a48b0b91853db43f31526" data-id="5f4bc4d3c02a48b0b91853db43f31526"><span><div id="5f4bc4d3c02a48b0b91853db43f31526" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5f4bc4d3c02a48b0b91853db43f31526" title="完成部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完成部署</span></span></h3><div class="notion-text notion-block-2187d5929f5f474380cae3c8ed9ae20b">页面中心会显示您的访问域名</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-59595db9804844e6852b9b9723c0b9e0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F30cba4fc-6da3-4a3d-a842-4b0e4443c8ac%2FUntitled.png?table=block&amp;id=59595db9-8048-44e6-852b-9b9723c0b9e0&amp;t=59595db9-8048-44e6-852b-9b9723c0b9e0&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-9930f2c776da40f19523ec8981b50485"> </div><div class="notion-blank notion-block-36490ea3bde24e12850dca0de24b1930"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-aa2a3fee610b40aab37c680a7034a070" data-id="aa2a3fee610b40aab37c680a7034a070"><span><div id="aa2a3fee610b40aab37c680a7034a070" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aa2a3fee610b40aab37c680a7034a070" title="FAQ"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">FAQ</span></span></h2><div class="notion-text notion-block-38ad4b690ed84e39b3ca49bb875f9f11">部署失败？如果你的构建日志中出现：
</div><div class="notion-text notion-block-f01187fcba1e41399ff5e72a13f1a335">可能是Cloudflare升级环境导致不兼容，解决方法：<b>降级为旧版构建环境，然后点击重试</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-ba9a4ae1d00d4249b9a259952871e563"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F66804e4e-228b-47a6-b8b2-db5549830d2e%2FUntitled.png?table=block&amp;id=ba9a4ae1-d00d-4249-b9a2-59952871e563&amp;t=ba9a4ae1-d00d-4249-b9a2-59952871e563&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-06ef6e3fd8b449ba87b3611f423676ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F3dfcc002-9e87-458c-8933-cfb732428a35%2FUntitled.png?table=block&amp;id=06ef6e3f-d8b4-49ba-87b3-611f423676ac&amp;t=06ef6e3f-d8b4-49ba-87b3-611f423676ac&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-c3fd6e32c98f43e2a2c18c6b1467ee60"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-107f93b9208b806595bfcc3421bc9241" data-id="107f93b9208b806595bfcc3421bc9241"><span><div id="107f93b9208b806595bfcc3421bc9241" class="notion-header-anchor"></div><a class="notion-hash-link" href="#107f93b9208b806595bfcc3421bc9241" title="需要帮助？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">需要帮助？</span></span></h3><div class="notion-text notion-block-107f93b9208b8029bfafc5ef325fdba1">如果你的部署异常，没有出现一个绿色的勾，通常是代码修改异常或者配置错误导致，点击右侧的查看详情，获取详细的部署日志：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-107f93b9208b804ba8fbe886f0e47beb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F95527329-dee1-4a04-a653-5b73647d5c73%2Fimage.png?table=block&amp;id=107f93b9-208b-804b-a8fb-e886f0e47beb&amp;t=107f93b9-208b-804b-a8fb-e886f0e47beb&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-64af4c7a3d214256be4de78065be9f3a">在构建日志这一栏可以看到所有详细的错误信息，根据错误日志进行排查问题，如果无法自行排查，可以将日志复制或截图，寻求他人帮助。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-107f93b9208b803685d6de4bba75a90a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F3ef8720a-b6e7-4c76-a39d-c3cdc6f4d82a%2Fimage.png?table=block&amp;id=107f93b9-208b-8036-85d6-de4bba75a90a&amp;t=107f93b9-208b-8036-85d6-de4bba75a90a&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2640122e07014bfa8fb2aa3fa5a346ca" data-id="2640122e07014bfa8fb2aa3fa5a346ca"><span><div id="2640122e07014bfa8fb2aa3fa5a346ca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2640122e07014bfa8fb2aa3fa5a346ca" title="CloudFlarePage如何绑定自定义域名？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">CloudFlarePage如何绑定自定义域名？</span></span></h2><div class="notion-text notion-block-a6b2b409f5db4c389a8c2496a4ccf8e9">项目主页找到<code class="notion-inline-code">自定义域</code>，找到下方设置自定义域</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2ec1449b9bc44b33b6df972d47250393"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F540d349c-3a54-4ad6-8f35-3c7aab9029f3%2FUntitled.png?table=block&amp;id=2ec1449b-9bc4-4b33-b6df-972d47250393&amp;t=2ec1449b-9bc4-4b33-b6df-972d47250393&amp;width=707.953125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-a24cabd53f09455296214fdb2f571038">填写域名并继续</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-56db2dfc09e94e1eaa72bd2accd48601"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5ec74a21-2da9-4738-90ab-219b8dff3c4a%2FUntitled.png?table=block&amp;id=56db2dfc-09e9-4e1e-aa72-bd2accd48601&amp;t=56db2dfc-09e9-4e1e-aa72-bd2accd48601&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-85c463adb69d4aa1bd78ce3ad8a1561b">按照要求在域名服务商后台配置一个CNAME转发</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-67cab9e54a694688b0d37b8153fd26af"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0ede5959-b1d6-4647-9535-dc6d7931df22%2FUntitled.png?table=block&amp;id=67cab9e5-4a69-4688-b0d3-7b8153fd26af&amp;t=67cab9e5-4a69-4688-b0d3-7b8153fd26af&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-c3315888982f4f4ca4a77c08887076b4"><li>CNAME转发示例</li><ul class="notion-list notion-list-disc notion-block-c3315888982f4f4ca4a77c08887076b4"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13edb7cad5d144a195820500ba4592a3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F83f0ce76-4f25-4d79-b3a1-8cd7f05eed54%2FUntitled.png?table=block&amp;id=13edb7ca-d5d1-44a1-9582-0500ba4592a3&amp;t=13edb7ca-d5d1-44a1-9582-0500ba4592a3&amp;width=679.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-7840351e977c4f91ac2c76ace8127898"><li>点击下方的激活域，由于我使用的域名商本身就是cloudflare，故此步骤只需几秒即可完成验证。</li><ul class="notion-list notion-list-disc notion-block-7840351e977c4f91ac2c76ace8127898"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e63adf7b0a7a4c129833a2e554c0c5f0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3a5dfe5f-14ed-40b4-bb50-76b94fe68fbd%2FUntitled.png?table=block&amp;id=e63adf7b-0a7a-4c12-9833-a2e554c0c5f0&amp;t=e63adf7b-0a7a-4c12-9833-a2e554c0c5f0&amp;width=679.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-blank notion-block-336f93b9208b809aaaa1d8ad59ba71d4"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-336f93b9208b80d8954adc1c01fa78fd" data-id="336f93b9208b80d8954adc1c01fa78fd"><span><div id="336f93b9208b80d8954adc1c01fa78fd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#336f93b9208b80d8954adc1c01fa78fd" title="Hooks 触发部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Hooks 触发部署</span></span></h2><div class="notion-blank notion-block-336f93b9208b80dca93cf1aca4188705"> </div><div class="notion-text notion-block-336f93b9208b80d28248eed76eadc16d">CloudFlare 支持和Vercel 类似的hooks 功能，后台生成一个调用地址，即可触发站点重新部署，用于更新文件和配置等。</div><div class="notion-text notion-block-336f93b9208b804cb2caf97646869943">在项目的设置页面，构建栏目下的部署挂钩。点击加号➕新增一个hooks即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b803484bbce1bd2dc39bc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7ba8effd-9e55-4a93-9acd-3f408abd0a7c%3Aimage.png?table=block&amp;id=336f93b9-208b-8034-84bb-ce1bd2dc39bc&amp;t=336f93b9-208b-8034-84bb-ce1bd2dc39bc" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-336f93b9208b80dc9f41c022c1b4a5b4">创建挂钩时，要指定你部署的github代码分支，以及随意起一个挂钩名称；</div><div class="notion-row notion-block-336f93b9208b80f39dddfae75f443de4"><div class="notion-column notion-block-336f93b9208b801a99e2e274802cf0ca" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b80c58f9bfd22d65b5dab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:403.00347900390625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82fbe880-dda2-414b-b018-3f460d8202e6%3Aimage.png?table=block&amp;id=336f93b9-208b-80c5-8f9b-fd22d65b5dab&amp;t=336f93b9-208b-80c5-8f9b-fd22d65b5dab" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-336f93b9208b80dc971dfbcbdaefd6e8" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b800c8454e42efa246500"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A167c38e7-d1c6-4702-9bda-dddd69617554%3Aimage.png?table=block&amp;id=336f93b9-208b-800c-8454-e42efa246500&amp;t=336f93b9-208b-800c-8454-e42efa246500" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-336f93b9208b80e8ae1ef7541cc267fc">创建后会生成一个webhook链接，点击复制链接保存使用。</div><div class="notion-blank notion-block-336f93b9208b8079821ee10559bc78be"> </div></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-336f93b9208b80dfb276c70bdaadd642"> </div><div class="notion-text notion-block-336f93b9208b808884a5e6643fb42434">需要注意，CloudFlare的hook 和 Vercel 不一样：</div><ul class="notion-list notion-list-disc notion-block-336f93b9208b800c90bfc76ed8c38539"><li><b>Vercel webhook</b> 👉 GET 也行（在浏览器地址栏输入Webhook网址即可 简单触发）</li></ul><ul class="notion-list notion-list-disc notion-block-336f93b9208b80d3b978f89c6b05be66"><li><b>Cloudflare Deploy Hook</b> 👉 只允许 POST（更安全）</li><ul class="notion-list notion-list-disc notion-block-336f93b9208b80d3b978f89c6b05be66"><div class="notion-text notion-block-336f93b9208b80a8ae79fdacaf927ccb">浏览器访问会提示 <code class="notion-inline-code">method_not_allowed</code></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b8092a4dbfeae398e8e23"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:666.9791870117188px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7f8e94aa-7f9e-42e3-b7a2-39a77c281844%3Aimage.png?table=block&amp;id=336f93b9-208b-8092-a4db-feae398e8e23&amp;t=336f93b9-208b-8092-a4db-feae398e8e23" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-text notion-block-336f93b9208b802db0d6e658a169e26f">👉 防止被随便浏览器点一下就触发部署</div><div class="notion-blank notion-block-336f93b9208b8095bed3c75b8f07080a"> </div><div class="notion-text notion-block-336f93b9208b80eca1a4d18f8118b31d">Windows/Mac/Linux可以用 终端命令行输入以下命令触发</div><div class="notion-text notion-block-336f93b9208b802ea4abef8d119c0e74">当页面显示如下内容，说明已经触发了重新部署</div><div class="notion-row notion-block-336f93b9208b80f382e6cf6079ac62fc"><div class="notion-column notion-block-336f93b9208b809c8cb0c78bcc138c59" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-336f93b9208b806fa04cd5fd9b181b3a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3a626211-80cd-40ed-9127-9c228de25b15%3Aimage.png?table=block&amp;id=336f93b9-208b-806f-a04c-d5fd9b181b3a&amp;t=336f93b9-208b-806f-a04c-d5fd9b181b3a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-336f93b9208b80aabf1cf530495103a1" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"></div><div class="notion-spacer"></div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[借助AI开发NotionNext]]></title>
            <link>https://docs.tangly1024.com/article/notion-next-develop-with-ai</link>
            <guid>https://docs.tangly1024.com/article/notion-next-develop-with-ai</guid>
            <pubDate>Fri, 25 Apr 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1e0f93b9208b80059bd2c0bd2c06a40f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b802a8bc9d99e77804650" data-id="1e0f93b9208b802a8bc9d99e77804650"><span><div id="1e0f93b9208b802a8bc9d99e77804650" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b802a8bc9d99e77804650" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h2><div class="notion-text notion-block-1e0f93b9208b8085bfafde9dc19a5b4c">如果不会任何编程语言能否定制一个新主题？</div><div class="notion-text notion-block-1e0f93b9208b80cfa908e9803e0b273f">结论是可以的，但是会有些难，相当于完全没有某个行业的客户积累与产品积累，却要一下子开一家这个行业的公司。但是如果你擅长通过AI进行自主学习与挖掘的话，会有一定的帮助。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b80f5bddee88413dcba3b" data-id="1e0f93b9208b80f5bddee88413dcba3b"><span><div id="1e0f93b9208b80f5bddee88413dcba3b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80f5bddee88413dcba3b" title="云环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">云环境</span></span></h2><div class="notion-text notion-block-1e0f93b9208b80e2a48dc0c9d850f501">建议先阅读<a class="notion-link" href="/3795d7d35ef64bd49510402d7afa8ffa"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="NotionNext开发先导" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">NotionNext开发先导</span></span></a> 这篇文章，其中介绍了开发NotionNext项目可能需要具备的一些基础知识。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1e0f93b9208b809c872bc69a16a74c04" data-id="1e0f93b9208b809c872bc69a16a74c04"><span><div id="1e0f93b9208b809c872bc69a16a74c04" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b809c872bc69a16a74c04" title="GitHub Codespaces"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GitHub Codespaces</span></span></h3><div class="notion-text notion-block-1e0f93b9208b80dcb042db4593533ba6">GitHub 本身自带 Codespaces 云环境，简单来说，在您的 GitHub 仓库中，点击 Code、再点击 <b>Create codespace</b> 打开云端开发环境；也可在加号处新建一个云开发空间：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b5aca8ea9818bc9128"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae17c4d26-d1f0-4dd3-baef-5722647b22cc%3A28f32ba842c3ed98116d7a6e2ad5c29.png?table=block&amp;id=1e0f93b9-208b-80b5-aca8-ea9818bc9128&amp;t=1e0f93b9-208b-80b5-aca8-ea9818bc9128" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b808ba238dc293e28cac1">在 Codespace 云空间中，界面与本地使用的 <b>VS Code</b> 相近。点击上方右侧的 Copilot 图标即可与 AI 聊天。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80348984db3a0a54d6bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A49215187-1774-4c98-880b-1fbea8ddc4f9%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8034-8984-db3a0a54d6bf&amp;t=1e0f93b9-208b-8034-8984-db3a0a54d6bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80d58385d76f9db9264a">Copilot会实时关注您当前打开的文件。通过对话，可以实现对文件的修改或建议。</div><div class="notion-blank notion-block-1e0f93b9208b80539deed5e39b9cfe69"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1e0f93b9208b80709d97cc8ae575fb25" data-id="1e0f93b9208b80709d97cc8ae575fb25"><span><div id="1e0f93b9208b80709d97cc8ae575fb25" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80709d97cc8ae575fb25" title="Google Firebase Studio"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Google Firebase Studio</span></span></h3><div class="notion-text notion-block-1e0f93b9208b805d9d30fdd490b14db4">Google推出了FirebaseStudio，支持将您的github项目导入这个云环境进行开发，其原理和Github的Codespace差不多。</div><div class="notion-text notion-block-1e0f93b9208b8074a5bee6e939c66ea8">不过FirebaseStudio似乎不能汉化界面，会有一定使用难度。另一方面gemini的ai用量不像copilot专为编程设计、后者有大量的github、vscode用户群体，因此能力有限，问几句话就歇菜了。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80149f88e6ec3261d319"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:655px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6fe57eac-6d17-40ee-a91b-733a2d90cd53%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8014-9f88-e6ec3261d319&amp;t=1e0f93b9-208b-8014-9f88-e6ec3261d319" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80eb8965e2a34edbe40d">因此我还是建议使用Codespace作为云开发环境，不但与github的集成更好，同时Copilot的AI性能更强大。</div><div class="notion-blank notion-block-1e0f93b9208b804ca8a4fe41a6d30e85"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b808397e3d46b94a15ec6" data-id="1e0f93b9208b808397e3d46b94a15ec6"><span><div id="1e0f93b9208b808397e3d46b94a15ec6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b808397e3d46b94a15ec6" title="使用Firebase进行AI开发演示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用Firebase进行AI开发演示</span></span></h2><div class="notion-text notion-block-1e0f93b9208b803c86aacc680ba4d32b">点击下方链接，访问并注册Firebase。</div><div class="notion-text notion-block-1e0f93b9208b80b0b1c7c16ba81b692b"><a class="notion-link" href="https://studio.firebase.google.com/" target="_blank" rel="noopener noreferrer">https://studio.firebase.google.com/</a></div><div class="notion-blank notion-block-1e0f93b9208b80159761f3b94b4731d0"> </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80c9b95eff2fb5ea391e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2801eaad-cee8-4b31-a3c9-ccee495a5fa5%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80c9-b95e-ff2fb5ea391e&amp;t=1e0f93b9-208b-80c9-b95e-ff2fb5ea391e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b800ab056fb1fd941ab85"> </div><div class="notion-text notion-block-1e0f93b9208b801da43cce5c13fb956d">来到项目首页，选择ImportRepo</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b8060adfcc40f2c80505a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A33689289-d0d6-4017-a6ee-cb365bec5747%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8060-adfc-c40f2c80505a&amp;t=1e0f93b9-208b-8060-adfc-c40f2c80505a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b806baa8cd023779d97a7">输入Github空间即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80678e48c14fd874e385"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A34c43e58-5472-47f6-be67-799114a86967%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8067-8e48-c14fd874e385&amp;t=1e0f93b9-208b-8067-8e48-c14fd874e385" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b801eb3b8e550437a30e2">Firebase会自动导入项目代码并进行环境安装。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80aba9f1dd47492f24f2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac7e71565-c214-433d-b914-4f346633a7b4%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80ab-a9f1-dd47492f24f2&amp;t=1e0f93b9-208b-80ab-a9f1-dd47492f24f2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b8098aad3e4ac303d3aff">安装完成后代码显示如下</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b801ebfdedb49ba0fb1b5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Add9f85b2-efa9-4e27-9545-c583c502ad04%3Aimage.png?table=block&amp;id=1e0f93b9-208b-801e-bfde-db49ba0fb1b5&amp;t=1e0f93b9-208b-801e-bfde-db49ba0fb1b5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80409574d6aa27aa5d7e"> </div><div class="notion-blank notion-block-1e0f93b9208b80a08f9eccb6681ea1ec"> </div><div class="notion-blank notion-block-1e0f93b9208b8003be0efc1757ed1957"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b80189a8afe7f537f56d1" data-id="1e0f93b9208b80189a8afe7f537f56d1"><span><div id="1e0f93b9208b80189a8afe7f537f56d1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80189a8afe7f537f56d1" title="主题定制"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主题定制</span></span></h2><div class="notion-text notion-block-1e0f93b9208b8071b132e84ab101d53c">这里用firebase示范，codespace的使用方法基本一致。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1e0f93b9208b8037b979fb19f3261dd4" data-id="1e0f93b9208b8037b979fb19f3261dd4"><span><div id="1e0f93b9208b8037b979fb19f3261dd4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b8037b979fb19f3261dd4" title="复制一个主题文件夹"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">复制一个主题文件夹</span></span></h3><div class="notion-text notion-block-1e0f93b9208b80eeb15adc7be181a8a2">不建议直接修改原先的主题，否则后续如果我也同步修改了这个主题文件夹，在更新的过程可能会产生大量的冲突。</div><div class="notion-text notion-block-1e0f93b9208b80189955fe3d1ce41311">在themes 目录，找到你较喜欢的主题，或者和你预期的新主题结构比较类似的主题，例如example主题文件夹。各主题的补充说明见仓库 <a class="notion-link" href="https://github.com/tangly1024/NotionNext/tree/main/docs/themes" target="_blank" rel="noopener noreferrer">docs/themes</a>（如 Fuwari、Claude 等）。点击右键copy复制这个文件夹。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b8016999bfdd0c5aba7fc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:519px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68eee919-1de8-4026-ba42-a356f49a28d6%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8016-999b-fdd0c5aba7fc&amp;t=1e0f93b9-208b-8016-999b-fdd0c5aba7fc" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b801dbf65e949661f2ebb">然后右键点击themes文件夹，选择paste粘贴至此。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b8034b61bfe186b371fe8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae18bab4a-ea8e-4e73-a7d4-80001a6ac2ab%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8034-b61b-fe186b371fe8&amp;t=1e0f93b9-208b-8034-b61b-fe186b371fe8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80198994c90c7e4f9845">粘贴后会出现一个新的文件夹，我刚复制的文件夹是example 因此这里粘贴后的文件夹名字为example copy</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b805c8824fe314208c83e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:317px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af66458a3-20ef-4986-9330-8bc9433be228%3Aimage.png?table=block&amp;id=1e0f93b9-208b-805c-8824-fe314208c83e&amp;t=1e0f93b9-208b-805c-8824-fe314208c83e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1e0f93b9208b80c69ce8e3b6e2a7237e" data-id="1e0f93b9208b80c69ce8e3b6e2a7237e"><span><div id="1e0f93b9208b80c69ce8e3b6e2a7237e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80c69ce8e3b6e2a7237e" title="重命名主题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重命名主题</span></span></h3><div class="notion-text notion-block-1e0f93b9208b8097a06cd49363f1baea">我希望新主题名为dream，因此将example copy文件夹重命名，右键点击文件夹，选择rename，并且输入新的文件夹名称，按下回车确认即可。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80599558c5a30a18f9a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acbc2aebe-9a8b-4466-8086-aea9aef1fccf%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8059-9558-c5a30a18f9a9&amp;t=1e0f93b9-208b-8059-9558-c5a30a18f9a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80ae8e2fcfd037838a8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:363px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa9a28571-2a7c-44ba-851a-b72c5e8f074a%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80ae-8e2f-cfd037838a8c&amp;t=1e0f93b9-208b-80ae-8e2f-cfd037838a8c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b804dad05e50dd10f9304" data-id="1e0f93b9208b804dad05e50dd10f9304"><span><div id="1e0f93b9208b804dad05e50dd10f9304" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b804dad05e50dd10f9304" title="修改主题内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改主题内容</span></span></h2><div class="notion-text notion-block-1e0f93b9208b80c58ffcd2fe84ce8c0c">双击打开dream / index.js 文件，并且用附件形式引入这个文件：点击gemini聊天窗口下的附件按钮。选择file</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b7bcbcf77897be56cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7f4f8e2b-383e-46c8-bd4c-4792034fde65%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80b7-bcbc-f77897be56cf&amp;t=1e0f93b9-208b-80b7-bcbc-f77897be56cf" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80189a34fc33933a5fee">在弹出的文件选择框中，选择当前的index.js文件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b808a85efe3366e24ca9c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7307c4dc-ef59-4cce-94ea-0d13732da44f%3Aimage.png?table=block&amp;id=1e0f93b9-208b-808a-85ef-e3366e24ca9c&amp;t=1e0f93b9-208b-808a-85ef-e3366e24ca9c" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-1e0f93b9208b8017b006c666acda8bfc"><div>如果是用Copilots的话可以省去此步骤</div></blockquote><div class="notion-text notion-block-1e0f93b9208b802faaebe872905d7413">然后给gemini发一句话：</div><blockquote class="notion-quote notion-block-1e0f93b9208b8094b922c2554210f392"><div>这个主题的顶部导航栏在哪，是哪个文件，并且在这个导航栏中做一个修改，在导航栏的左侧加一行蓝色文字，内容是“新主题dream”创建成功。
文件应该在/themes/dream/components目录下</div></blockquote><div class="notion-blank notion-block-1e0f93b9208b80af831adb81592c4059"> </div><div class="notion-text notion-block-1e0f93b9208b8059b5ccccf12b61ab58">紧接着ai会告诉你所有的内容，然后会给出一份代码修改建议：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b801fada3f8bba1f39b96"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A86c1723b-ea67-41cd-a0fc-578b257dc6a4%3Aimage.png?table=block&amp;id=1e0f93b9-208b-801f-ada3-f8bba1f39b96&amp;t=1e0f93b9-208b-801f-ada3-f8bba1f39b96" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b806380becc992d332ce7">点击建议框右侧的Review changes可以审视修改的内容，点击左侧的Updates file，即可自动修改文件。</div><div class="notion-blank notion-block-1e0f93b9208b8013b898ec369f3e58e5"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b8090a74fddba1d0f37ee" data-id="1e0f93b9208b8090a74fddba1d0f37ee"><span><div id="1e0f93b9208b8090a74fddba1d0f37ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b8090a74fddba1d0f37ee" title="运行启动项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">运行启动项目</span></span></h2><div class="notion-text notion-block-1e0f93b9208b807fab1adba1cffc845e">启动项目之前可以先将当前主题切换为您刚创建的dream主题。最简单的方法可以是修改blog.config.js文件</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80899cb2e4558910c144"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A894dc2cb-b4bd-41c4-993a-9c022f8f24e5%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8089-9cb2-e4558910c144&amp;t=1e0f93b9-208b-8089-9cb2-e4558910c144" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80cfba1ff6a3a22c370c"> </div><div class="notion-text notion-block-1e0f93b9208b80f28d8dd976f0343327">在控制台输入 npm run dev 即可运行项目</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b800991f2d2cd7816b287"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae2dfa4b3-8074-47cf-9b6c-02a2e5d55087%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8009-91f2-d2cd7816b287&amp;t=1e0f93b9-208b-8009-91f2-d2cd7816b287" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80968e04c15acf53fd2a">运行启动后，<b>按住键盘Ctrl键再鼠标点击控制台打印处的http://locahost:3000</b> 即可打开实时调试页面：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b806b98b2ea7819c246e3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3c97c2ff-51b4-4080-8bef-39a2a6b7f497%3Aimage.png?table=block&amp;id=1e0f93b9-208b-806b-98b2-ea7819c246e3&amp;t=1e0f93b9-208b-806b-98b2-ea7819c246e3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b8019bfa6ca3800c4ad6c">firebase会自动分配一个临时网址用于访问调试页面。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80dfac24cd0a7ba0492a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A15c50a71-2bed-4f4f-bf6c-f2482dee759a%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80df-ac24-cd0a7ba0492a&amp;t=1e0f93b9-208b-80df-ac24-cd0a7ba0492a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80efb940cd5c1cad4cd8"> </div><div class="notion-text notion-block-1e0f93b9208b8089b1b3fa1763b320f1">打开后即可看到刚刚的修改已经生效了，接下来您的所有代码修改都会实时反映在这个页面上。</div><div class="notion-text notion-block-1e0f93b9208b801c946ccf0502e13f04">我们可以切换到刚刚的编辑页面手动修改内容：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80529fd4e321edbbcc69"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A65966abe-d683-4b19-bd39-358a4124b2f8%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8052-9fd4-e321edbbcc69&amp;t=1e0f93b9-208b-8052-9fd4-e321edbbcc69" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80319aa3d32601a51b91">然后再看页面就已经生效了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b1a172efe595a15ea8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4a9a403e-22e8-47b1-9386-e4e9a527e922%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80b1-a172-efe595a15ea8&amp;t=1e0f93b9-208b-80b1-a172-efe595a15ea8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b809daa44cd12aa30bc82"> </div><div class="notion-text notion-block-1e0f93b9208b80eebc52d96bcd726a4c">接下来就是不停的和AI对话，告诉他需要改什么，给出结果，然后你点击更新文件即可。</div><div class="notion-blank notion-block-1e0f93b9208b80ad94d4fc6ea9a354a5"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b80a9a384f57df4d03961" data-id="1e0f93b9208b80a9a384f57df4d03961"><span><div id="1e0f93b9208b80a9a384f57df4d03961" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80a9a384f57df4d03961" title="保存代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">保存代码</span></span></h2><div class="notion-text notion-block-1e0f93b9208b80db89afe457bad43073">所有的代码需要提交到git仓库才能被保存，这里涉及到git的使用操作，git本身是为大型多人团队协作设计、其功能强大，需要一定的学习。我这里做一个最简单的提交代码的演示。</div><div class="notion-blank notion-block-1e0f93b9208b800faab7d5fc2fc48409"> </div><div class="notion-text notion-block-1e0f93b9208b80f59dd5f071b0b58200">点击左侧的Source Control图标</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b800f94f3e50e97fb3871"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:352px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd2f42f3-86c6-4f6c-8dd7-2e40b96ddb3c%3Aimage.png?table=block&amp;id=1e0f93b9-208b-800f-94f3-e50e97fb3871&amp;t=1e0f93b9-208b-800f-94f3-e50e97fb3871" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b808e9843f878ed3a4345">这里列出了所有本次的更改内容，你需要将确定要保存的修改内容进行确认。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80fd8033f5a0b255ef5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4928efc6-314e-4b42-a45a-c59e479ac006%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80fd-8033-f5a0b255ef5f&amp;t=1e0f93b9-208b-80fd-8033-f5a0b255ef5f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b802bbe54e2a0abf08cc1">鼠标指向每个文件的右侧都会浮现一个加号，点击表示此文件需要保存到git仓库中。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80aaaa9ee763d2cbcc71"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:327px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A35aa5ddd-e7f6-460e-af03-90af68144f72%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80aa-aa9e-e763d2cbcc71&amp;t=1e0f93b9-208b-80aa-aa9e-e763d2cbcc71" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b808c8884e9b094ff77cf">点击后的文件会显示再Staged Changes这个分栏下：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b803d829eceee47bf8403"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:317px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af6a5400a-aef4-4aae-80c3-2c7216593997%3Aimage.png?table=block&amp;id=1e0f93b9-208b-803d-829e-ceee47bf8403&amp;t=1e0f93b9-208b-803d-829e-ceee47bf8403" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b8074955fd341f7cbe7b6">可以点击Changes右侧的加号，一次性确认所有文件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b8012a960dc6a3c4a094a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:378px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7edf8c5f-942e-4455-a5eb-2cbb17dd3a10%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8012-a960-dc6a3c4a094a&amp;t=1e0f93b9-208b-8012-a960-dc6a3c4a094a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b8039814bef39318abb6f">要提交保存的文件确认后，在上方的Message栏中填写这次提交改动的功能说明，这是必填项，便于日后回查此次提交的内容。例如我在这里输入: “创建了新的主题dream”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80dc86a6daef5da471c8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:366px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aca9be058-05c8-4dfa-a441-9244ace9189a%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80dc-86a6-daef5da471c8&amp;t=1e0f93b9-208b-80dc-86a6-daef5da471c8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80cd9e82e9de96e146d9"> </div><div class="notion-text notion-block-1e0f93b9208b809ab49bef5cbe8605f6">填写完说明内容后，点击下方的commit按钮提交，提交后下方列表就变空了，因为已经没有待确认和待提交的内容，所以这里就没有可以显示的内容。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b49f2be100d21c7d32"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:365px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A28309901-06d3-4537-be23-27480c0b0fd8%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80b4-9f2b-e100d21c7d32&amp;t=1e0f93b9-208b-80b4-9f2b-e100d21c7d32" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80abba09e01900017b47">我们注意到这里有一个按钮，如果你是创建了一个新的git分支会显示上面的Publish branch按钮，如果是在原有的分支例如main分支上进行开发，那么这里会显示 sync changes ，表示与你的github云端仓库需要进行同步。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80638371cad7f273fad0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:306px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae4dc88f6-5e40-4e46-8ed6-9b4ce3725035%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8063-8371-cad7f273fad0&amp;t=1e0f93b9-208b-8063-8371-cad7f273fad0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80d6897ce8ff5265d2be">这里我们点击它，将内容同步到github云端。</div><div class="notion-blank notion-block-1e0f93b9208b80de8078eb3069540114"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1e0f93b9208b806e9aa6d14263c1cd63" data-id="1e0f93b9208b806e9aa6d14263c1cd63"><span><div id="1e0f93b9208b806e9aa6d14263c1cd63" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b806e9aa6d14263c1cd63" title="授权Github"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">授权Github</span></span></h3><blockquote class="notion-quote notion-block-1e0f93b9208b8056ba62e611eb33fa7c"><div>如果用的是github提供的codespace环境则无需下列步骤。</div></blockquote><div class="notion-text notion-block-1e0f93b9208b80b4bef2c21f452fdecd">如果这里你是首次同步的话，会提示你要获得github插件的许可，点击同意即可；</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b3a481d60af33117c3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:536px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3a168eae-cb72-429a-a110-ecade66e852e%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80b3-a481-d60af33117c3&amp;t=1e0f93b9-208b-80b3-a481-d60af33117c3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80c59097c0ca07394506">然后会得到一个授权码，点击copy $ continue to github </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80e2b8aff8600a0c36bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:551px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5cc75d9a-c8cb-461c-8b77-2041b169bffc%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80e2-b8af-f8600a0c36bf&amp;t=1e0f93b9-208b-80e2-b8af-f8600a0c36bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b80b9a627e4d95ea37fb0">在自动跳转到的页面中粘贴或输入验证码。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b808db3fcf7ca0e817f1f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A11f558a2-27c7-4ba1-a737-07a125553dea%3Aimage.png?table=block&amp;id=1e0f93b9-208b-808d-b3fc-f7ca0e817f1f&amp;t=1e0f93b9-208b-808d-b3fc-f7ca0e817f1f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b805595f6e9127c9b8696">然后再在二次确认页面点击 Authorize Visual Studio Code即可。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b808e946be2aa6eaa5231"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A87e98156-cbc5-477b-86a2-5c9bd2aee6cf%3Aimage.png?table=block&amp;id=1e0f93b9-208b-808e-946b-e2aa6eaa5231&amp;t=1e0f93b9-208b-808e-946b-e2aa6eaa5231" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80488100c9ac4261c0b8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9e63fc75-81fb-4f63-8c9f-a1b93f9cf460%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8048-8100-c9ac4261c0b8&amp;t=1e0f93b9-208b-8048-8100-c9ac4261c0b8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b8059a3cbf0322958bc38"> </div><div class="notion-text notion-block-1e0f93b9208b80b7ad00dfbe8d468fc4">如果上述步骤走不通的话，firebase也支持用github的token进行提交验证，这是另一种可选的授权方案，不过基本用不到，此处不做展开。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80cd8e50eab73f0d91fd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:521px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3dd71eed-b5a8-4831-a3b1-d1b2f3d6dbd4%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80cd-8e50-eab73f0d91fd&amp;t=1e0f93b9-208b-80cd-8e50-eab73f0d91fd" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80889d96d884a9be7644"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b8082b7e1c6378d06fef3" data-id="1e0f93b9208b8082b7e1c6378d06fef3"><span><div id="1e0f93b9208b8082b7e1c6378d06fef3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b8082b7e1c6378d06fef3" title="代码提交同步完成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">代码提交同步完成</span></span></h2><div class="notion-text notion-block-1e0f93b9208b80cdad8bf37cdba3b320">此时再看你的SourceControl 页面，已经没有待提交、待审核、和带同步的任务了。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b80b986c6c8e347aecbf4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:376px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa0a9fc96-44ed-4520-816e-bae735646b96%3Aimage.png?table=block&amp;id=1e0f93b9-208b-80b9-86c6-c8e347aecbf4&amp;t=1e0f93b9-208b-80b9-86c6-c8e347aecbf4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1e0f93b9208b802ebc42f169659b8132">而在github项目中能看到刚刚的提交记录说明，和对应的文件内容</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0f93b9208b8086a510c5979f81a547"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A51eba0d0-5bef-4d22-b53f-65aacb77c27c%3Aimage.png?table=block&amp;id=1e0f93b9-208b-8086-a510-c5979f81a547&amp;t=1e0f93b9-208b-8086-a510-c5979f81a547" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1e0f93b9208b80a28409c056437d0190"> </div><div class="notion-text notion-block-1e0f93b9208b8095bc8af9d7f0cf6249">接下来vercel将会自动识别代码的修改并自动部署您的站点。</div><div class="notion-text notion-block-1e0f93b9208b805ca446cee3247b1a1e">以上就是一个完整的，借助云环境+AI开发一个小功能，并同步到Github的流程。</div><div class="notion-blank notion-block-1e0f93b9208b809e9f3bdbcf40833219"> </div><div class="notion-blank notion-block-1e0f93b9208b805a9339ea03448b9011"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1e0f93b9208b80048e82c19cf71c44c9" data-id="1e0f93b9208b80048e82c19cf71c44c9"><span><div id="1e0f93b9208b80048e82c19cf71c44c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1e0f93b9208b80048e82c19cf71c44c9" title="结尾"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结尾</span></span></h2><div class="notion-text notion-block-1e0f93b9208b8049ba90d42ae87f3b9b">需要注意的是，AI和云环境只是一个效率工具，本质是帮不懂的人快速入门学习，帮住本来就懂的人节省开发时间。因此要想彻底掌握开发，还需要结合学习NotionNext所使用的框架技术和文件目录的规范结构。</div><div class="notion-text notion-block-1e0f93b9208b80e4bb30c9268059e2d5">将来再过几年，等AI-Agent智能体普及之后，就完全不需要上面这么复杂的步骤了，到时候只要负责发布命令，如何实现都是智能体应该考虑的。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EdgeOne部署NotionNext]]></title>
            <link>https://docs.tangly1024.com/article/deploy-notion-next-with-edge-one</link>
            <guid>https://docs.tangly1024.com/article/deploy-notion-next-with-edge-one</guid>
            <pubDate>Wed, 13 Nov 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-13df93b9208b80659209f5b6f82fe359"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-13df93b9208b80e283fdcc076013ba88"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="⚠️">⚠️</span></div><div class="notion-callout-text"><div class="notion-text notion-block-1dfeb08e8fc546458bed0f3487eb501f">腾讯云推出的EdgeOne支持部署Nextjs等主流前端框架项目，目前只支持静态导出，不支持动态站点，感兴趣的话可以体验一下。</div></div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13df93b9208b801aa97fcbfd8dad4c8c" data-id="13df93b9208b801aa97fcbfd8dad4c8c"><span><div id="13df93b9208b801aa97fcbfd8dad4c8c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b801aa97fcbfd8dad4c8c" title="什么是EdgeOne？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">什么是EdgeOne？</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80f7819df278e4c378a7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F181bc5ad-7368-4b0e-8264-54a04fd036d8%2Fimage.png?table=block&amp;id=13df93b9-208b-80f7-819d-f278e4c378a7&amp;t=13df93b9-208b-80f7-819d-f278e4c378a7&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80a08809e8aac3486383">边缘安全加速平台EO（Tencent Cloud EdgeOne，下文简称为EdgeOne）<b>基于腾讯边缘计算节点提供加速 和安全的解决方案</b>，为电商与零售、金融服务、内容资讯与游戏等行业保驾护航，提升用户体验。 支持全网域名解析，实现统一管理，域名解析记录可添加。 添加域名后，DNS 解析自动导入该域名下的所有主机记录。</div><div class="notion-text notion-block-13df93b9208b802c9a75d0e2eed88240">参考文章：</div><div class="notion-row"><a class="notion-bookmark notion-block-13df93b9208b80f5afc6e3130dac5b8f" href="https://mp.weixin.qq.com/s/LdE-bNPttF6d8sDEvsgKuw" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">腾讯推出免费部署网站服务，可搭建个人博客：EdgeOne Pages</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fres.wx.qq.com%2Fa%2Fwx_fed%2Fassets%2Fres%2FMjliNWVm.svg?table=block&amp;id=13df93b9-208b-80f5-afc6-e3130dac5b8f&amp;t=13df93b9-208b-80f5-afc6-e3130dac5b8f" alt="腾讯推出免费部署网站服务，可搭建个人博客：EdgeOne Pages" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://mp.weixin.qq.com/s/LdE-bNPttF6d8sDEvsgKuw</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2FSP35P9ibAg5HsgEjGeg2fKBuJwot6ccJImonqziaZmHySYspR4mmWY2cia5Vd1QzPUn9mupIF7v34k3B4fWEnnptQ%2F0%3Fwx_fmt%3Djpeg?table=block&amp;id=13df93b9-208b-80f5-afc6-e3130dac5b8f&amp;t=13df93b9-208b-80f5-afc6-e3130dac5b8f" alt="腾讯推出免费部署网站服务，可搭建个人博客：EdgeOne Pages" loading="lazy" decoding="async"/></div></a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13df93b9208b8034a655c959e9e8cb3d" data-id="13df93b9208b8034a655c959e9e8cb3d"><span><div id="13df93b9208b8034a655c959e9e8cb3d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b8034a655c959e9e8cb3d" title="注册开通"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注册开通</span></span></h2><div class="notion-text notion-block-13df93b9208b8072878dfe9890a6685c">使用「EdgeOne Pages」你需要准备 Google 和 Github 的账号，然后访问 EdgeOne 网站进行注册账号。</div><div class="notion-text notion-block-13df93b9208b80d0af36cbc37fcfd057">点击注册：<a class="notion-link" href="https://edgeone.ai/register" target="_blank" rel="noopener noreferrer">https://edgeone.ai/register</a> 。注册完成后跳转到腾讯云后台，点击“立即开通”从而开启OpenEdge功能。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b807d966bda2c2fd6a4cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ffa862629-be58-4b6f-8164-f7df1f5a5243%2Fimage.png?table=block&amp;id=13df93b9-208b-807d-966b-da2c2fd6a4cd&amp;t=13df93b9-208b-807d-966b-da2c2fd6a4cd&amp;width=746.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-13df93b9208b80db83e0d26cf4ebee4c"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13df93b9208b80678d5ed4c3a1636d76" data-id="13df93b9208b80678d5ed4c3a1636d76"><span><div id="13df93b9208b80678d5ed4c3a1636d76" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b80678d5ed4c3a1636d76" title="关联Github导入项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关联Github导入项目</span></span></h2><div class="notion-text notion-block-13df93b9208b80ce8e54de93f2e2cf5e">开通Pages后，页面提示板顶绑定 GitHub</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b801dbdaed1976fe9a862"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fefa02913-cd5f-4b39-9a69-7977412700eb%2Fimage.png?table=block&amp;id=13df93b9-208b-801d-bdae-d1976fe9a862&amp;t=13df93b9-208b-801d-bdae-d1976fe9a862&amp;width=746.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80b1a361fcac8637358c">按照步骤进行授权</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80498542ef754b555db4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F3e881d06-6f4e-488e-810f-0e1a54052a34%2Fimage.png?table=block&amp;id=13df93b9-208b-8049-8542-ef754b555db4&amp;t=13df93b9-208b-8049-8542-ef754b555db4&amp;width=603.296875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80dfa49df1fb5e039b10">选择允许访问的代码项目，这里我选择允许访问所有仓库。（您也可以指定只访问个别仓库）</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80b3b98ce02f2ca1ae43"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fb1330468-0a49-49f3-a36e-937a3d3ba205%2Fimage.png?table=block&amp;id=13df93b9-208b-80b3-b98c-e02f2ca1ae43&amp;t=13df93b9-208b-80b3-b98c-e02f2ca1ae43&amp;width=603.296875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-13df93b9208b80169331c9d6b376e380" data-id="13df93b9208b80169331c9d6b376e380"><span><div id="13df93b9208b80169331c9d6b376e380" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b80169331c9d6b376e380" title="导入项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">导入项目</span></span></h3><div class="notion-text notion-block-13df93b9208b8051a3bcced0041e7355">选择NotionNext项目</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b8026aa37cc7a9e0ffdaf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:310.78125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F71b88efd-d362-4b36-b38c-6677a273d11d%2Fimage.png?table=block&amp;id=13df93b9-208b-8026-aa37-cc7a9e0ffdaf&amp;t=13df93b9-208b-8026-aa37-cc7a9e0ffdaf&amp;width=310.78125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-13df93b9208b804bba26d5affbbf598e" data-id="13df93b9208b804bba26d5affbbf598e"><span><div id="13df93b9208b804bba26d5affbbf598e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b804bba26d5affbbf598e" title="配置编译选项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置编译选项</span></span></h3><div class="notion-text notion-block-13df93b9208b80d8b828fa8af0c85c0c">系统会自动检测项目的框架，并且预填写构建命令。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b8005b1f0e13dbc13d5ca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fb2bdee87-a9bb-43ca-9e87-4051519bdfd8%2Fimage.png?table=block&amp;id=13df93b9-208b-8005-b1f0-e13dbc13d5ca&amp;t=13df93b9-208b-8005-b1f0-e13dbc13d5ca&amp;width=603.28125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80da9517f0eb075f502c">这里我们要注意三处地方改动：</div><ol start="1" class="notion-list notion-list-numbered notion-block-13df93b9208b804d9d70df9263074272" style="list-style-type:decimal"><li>构建命令请使用静态导出：<code class="notion-inline-code"><b>yarn export</b></code>（不要再用 <code class="notion-inline-code"><b>yarn build</b></code> 作为最终构建命令）。若托管面板模板仍显示 <code class="notion-inline-code">npm run build</code> / <code class="notion-inline-code">npm run export</code>，请按仓库习惯改为 Yarn。前者是动态站点，后者是静态。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-13df93b9208b8009b5cfcb9e751d2c08" style="list-style-type:decimal"><li><code class="notion-inline-code">项目名称</code>要修改一下，名称长度必须为5到63个字符，只能包含小写字母、数字和连字符。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-13df93b9208b802cb5e8e7db74feb68b" style="list-style-type:decimal"><li>环境变量中添加您的<code class="notion-inline-code">NOTION_PAGE_ID</code> </li></ol><div class="notion-text notion-block-13df93b9208b8025a58ad245a8523de8">修改后配置如下图：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b801292cdc31a49a4c273"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fc3650fc0-5443-473f-aeb6-e33a5fcb1694%2Fimage.png?table=block&amp;id=13df93b9-208b-8012-92cd-c31a49a4c273&amp;t=13df93b9-208b-8012-92cd-c31a49a4c273&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80b3af72dd512e920072">确认配置后就可以点击“开始部署”按钮，进行部署了：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-13df93b9208b809a92b8fae0f403ffcb" data-id="13df93b9208b809a92b8fae0f403ffcb"><span><div id="13df93b9208b809a92b8fae0f403ffcb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b809a92b8fae0f403ffcb" title="等待部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">等待部署</span></span></h3><div class="notion-text notion-block-13df93b9208b80f0bd2efde18b0dac61">过程需要几分钟不等。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b8090b6ebeb8aa7715b8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fc78c0fd5-bb26-4265-9a8c-36fe53e40688%2Fimage.png?table=block&amp;id=13df93b9-208b-8090-b6eb-eb8aa7715b8c&amp;t=13df93b9-208b-8090-b6eb-eb8aa7715b8c&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-13df93b9208b80dabc8acc107fe5889d"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-13df93b9208b8019913fdc4e9fc47cbe" data-id="13df93b9208b8019913fdc4e9fc47cbe"><span><div id="13df93b9208b8019913fdc4e9fc47cbe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b8019913fdc4e9fc47cbe" title="部署完成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部署完成</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b801da55ddbe0d2d17f18"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F59acfec2-fbf6-401c-af48-c6de971fabdc%2Fimage.png?table=block&amp;id=13df93b9-208b-801d-a55d-dbe0d2d17f18&amp;t=13df93b9-208b-801d-a55d-dbe0d2d17f18&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80069103df108e796d7e">点击右上角的预览按钮，获取临时访问链接：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80a19936e9f5f1d2775f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F51c77e64-f982-4a4e-ad68-af041e9a7733%2Fimage.png?table=block&amp;id=13df93b9-208b-80a1-9936-e9f5f1d2775f&amp;t=13df93b9-208b-80a1-9936-e9f5f1d2775f&amp;width=707.953125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80539443fcd33dd416fe">点击访问；</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b8055b5d9c313f2eca3e6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F38d19543-389a-4840-bd7a-aa35d4948992%2Fimage.png?table=block&amp;id=13df93b9-208b-8055-b5d9-c313f2eca3e6&amp;t=13df93b9-208b-8055-b5d9-c313f2eca3e6&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13df93b9208b8018a889da0a56ef54a6" data-id="13df93b9208b8018a889da0a56ef54a6"><span><div id="13df93b9208b8018a889da0a56ef54a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b8018a889da0a56ef54a6" title="修改配置与重新部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改配置与重新部署</span></span></h2><div class="notion-text notion-block-13df93b9208b80f8a403cfb96ae1c4ee">您可以随时返回到项目设置中，添加或修改环境变量，例如修改主题.</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b801da70ae1747bd0b99d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fdf75ddcf-849e-4758-9493-078dc71a5822%2Fimage.png?table=block&amp;id=13df93b9-208b-801d-a70a-e1747bd0b99d&amp;t=13df93b9-208b-801d-a70a-e1747bd0b99d&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80e28277e62a1ae2b584">然后在构建部署栏目中，点击更多，并重新部署项目</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80e1b032f0d184652ab0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ff1669a3d-5aad-4965-ac5b-f108de81421f%2Fimage.png?table=block&amp;id=13df93b9-208b-80e1-b032-f0d184652ab0&amp;t=13df93b9-208b-80e1-b032-f0d184652ab0&amp;width=707.953125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13df93b9208b80daa085d8d3ff6bb12a" data-id="13df93b9208b80daa085d8d3ff6bb12a"><span><div id="13df93b9208b80daa085d8d3ff6bb12a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b80daa085d8d3ff6bb12a" title="绑定自定义域名"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">绑定自定义域名</span></span></h2><div class="notion-text notion-block-13df93b9208b807b9a1fe22a7419185e">项目设置中，点击添加自定义域名</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80cb888bd26e27ee5ae6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ff2193b8f-c77a-4d7b-b129-b3187cca9564%2Fimage.png?table=block&amp;id=13df93b9-208b-80cb-888b-d26e27ee5ae6&amp;t=13df93b9-208b-80cb-888b-d26e27ee5ae6&amp;width=707.953125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b8052a0deef2e0b5b3da3">输入您需要绑定的域名</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80fdb67efb491a674d91"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:708px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F924dd99a-292e-4a63-a8ed-bfbdae9f8852%2Fimage.png?table=block&amp;id=13df93b9-208b-80fd-b67e-fb491a674d91&amp;t=13df93b9-208b-80fd-b67e-fb491a674d91&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80e5a8f4d29ca5ed419c">按照要求在您的域名服务商后台添加一条<code class="notion-inline-code">CNAME</code>解析即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80a9aaecd5693cd424bb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fa432130b-c0c6-49a0-a1b2-2f6083f1ca0a%2Fimage.png?table=block&amp;id=13df93b9-208b-80a9-aaec-d5693cd424bb&amp;t=13df93b9-208b-80a9-aaec-d5693cd424bb&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80c2b2dbcbad662e0892">例如系统分配给我的CNAME是 <code class="notion-inline-code">eo </code>→ <code class="notion-inline-code">eo.tangly1024.com.dns.edgeone.app.</code> 。 </div><div class="notion-text notion-block-13df93b9208b80908672cdfc70b1e827">我的域名托管在CloudFlare，因此我用CloudFlare来示例如何配置CNAME。</div><div class="notion-text notion-block-13df93b9208b807a81f8ca3173bd0e5f">点击DNS管理，添加记录，类型是CNAME，名称是eo，目标是我的<code class="notion-inline-code">eo.tangly1024.com.dns.edgeone.app.</code> （注意这里填写你的，每个人不一样），然后将代理状态的橙色云暂时关闭。最后点击保存。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80e98faec1d8b4b28272"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F36eb6307-abba-439f-9145-cab30730050d%2Fimage.png?table=block&amp;id=13df93b9-208b-80e9-8fae-c1d8b4b28272&amp;t=13df93b9-208b-80e9-8fae-c1d8b4b28272&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80d7a389e95a14b0225d">然后点击验证：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80d1a8fee0a571ac6b1b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Fbae12ed5-481a-4d38-9eb5-e4dc8d04de58%2Fimage.png?table=block&amp;id=13df93b9-208b-80d1-a8fe-e0a571ac6b1b&amp;t=13df93b9-208b-80d1-a8fe-e0a571ac6b1b&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b8057934bf94312644f97">系统会检查您的DNS解析状态</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80abb229ed9ee391dbd6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:703px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ff86eb0f2-244b-4140-9656-89524dea67c8%2Fimage.png?table=block&amp;id=13df93b9-208b-80ab-b229-ed9ee391dbd6&amp;t=13df93b9-208b-80ab-b229-ed9ee391dbd6&amp;width=703&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b808c9b10c5ae70ed1849">验证成功：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b8046976ec44f7ec99538"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ff63dd9ef-8418-49bf-a7b5-b624d0a158e1%2Fimage.png?table=block&amp;id=13df93b9-208b-8046-976e-c44f7ec99538&amp;t=13df93b9-208b-8046-976e-c44f7ec99538&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b80069957ede1f3c2d002">然后系统会自动验证证书大概2分钟左右能完成。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b805fa6f9ca13a940c31c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F54498f7c-bdbe-495a-a672-43be0cc530de%2Fimage.png?table=block&amp;id=13df93b9-208b-805f-a6f9-ca13a940c31c&amp;t=13df93b9-208b-805f-a6f9-ca13a940c31c&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-13df93b9208b802d88abd2a3a6f199df">这里其实可以不用等它，只要DNS记录验证成功，就可以直接访问站点了</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-13df93b9208b800cae95f6a00cd471b0" data-id="13df93b9208b800cae95f6a00cd471b0"><span><div id="13df93b9208b800cae95f6a00cd471b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13df93b9208b800cae95f6a00cd471b0" title="访问站点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">访问站点</span></span></h3><div class="notion-row"><a class="notion-bookmark notion-block-13df93b9208b8044bd46da874e04e69d" href="https://eo.tangly1024.com/" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Tangly的学习笔记 | 取势、明道、优术</div><div class="notion-bookmark-description">取势、明道、优术</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Feo.tangly1024.com%2Ffavicon.ico?table=block&amp;id=13df93b9-208b-8044-bd46-da874e04e69d&amp;t=13df93b9-208b-8044-bd46-da874e04e69d" alt="Tangly的学习笔记 | 取势、明道、优术" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://eo.tangly1024.com/</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2Ff224eb27-5a48-40ea-80c4-6913dff1fc76%2Fv2-98b223a74d8edb281326fc0d9b8c99c2_1440w.webp?table=collection&amp;id=8e7acf17-de09-4fa1-abde-b5b80ad4a813&amp;t=8e7acf17-de09-4fa1-abde-b5b80ad4a813&amp;width=1080&amp;cache=v2&amp;t=13df93b9-208b-8044-bd46-da874e04e69d" alt="Tangly的学习笔记 | 取势、明道、优术" loading="lazy" decoding="async"/></div></a></div><div class="notion-blank notion-block-13df93b9208b80479bfae3cd945d9f47"> </div><div class="notion-text notion-block-13df93b9208b802ca70fd0bf9e50fbed">EdgeOne在使用的过程中还有一些小BUG，例如部署后配置没有生效，毕竟是比较初版的功能，后面更新应该会好。</div><div class="notion-blank notion-block-13df93b9208b8082854cdd12a81bf083"> </div><div class="notion-text notion-block-13df93b9208b80a99bc4d0d00220ec00">最后，当站点都启动完成后，可以回到CloudFlare后台，开启橙色的代理状态，从而激活CloudFlare的缓存、全球CDN加速等功能。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13df93b9208b80d2b8a6e5cbde66ba93"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6c096b44-beb9-48ee-8f92-1efdde47f3a3%2F4584ca83-3f6f-47ca-8b27-423f5fd67c00%2Fimage.png?table=block&amp;id=13df93b9-208b-80d2-b8a6-e5cbde66ba93&amp;t=13df93b9-208b-80d2-b8a6-e5cbde66ba93&amp;width=707.984375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-13df93b9208b808a8701d77322d3198e"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>