我有一些问题

slug
collections-of-questions
summary
部署锘锘时的一些问题合辑。
date
Mar 16, 2021
tags
问题集
status
Published
type
Post

Notes for Vercel dummies


  • 什么叫“使用 vercel 部署”?
    • 用 GitHub 帐号登录 vercel.com 并导入 repository
  • 什么是“部署"?
    • Deploy / redeploy / commit / push
  • 什么是 deployment?
    • 我看到了好多个 deployments 👀
      notion image
      • 这个是历史 deployment 清单,最近若干次部署都会显示在这里(每次部署自备一个 hash url),相当于你的 project 的更新记录
      • 按 AGE 升序排列,所以列表下方的都是「过去」,是历史的快照,不可更改。最上面的自然是最新的
    • 每一个 deployment 是这个 project 的一个「版本快照」,可以选取其中任意一个 deployment 作为这个 project 对外公开的版本,也就是所谓的 production 版本。方法:在三筒菜单🀛里选择 Promote to Production
    • 每次部署本都会得到一个独一无二的地址供测试,也就是 deployment 的 hash url,不可更改。
  • 域名怎么来的?
    • 🗣️
      “不修改就永远是你的!”
    • 为了方便用户访问,可以给 production 版本设定一个独特并且可以更改的域名,也就是 *.vercel.app
    • 如果 setting - git 里是 main,那么每次部署都会自动 Promote to Production,即可用主域名访问最新部署版本。

Notes for Nobelium dummies


  • 原始数据库里的属性可以更名吗?可以添加属性吗?
    • 不可以更名,程序依赖那些属性的名称以便解析。
    • 可以添加。
  • 那么这篇文章离真正被发布还有几步呢?
    • slug 为必填,是文章 url 的一部分
    • status 须改为 Published
    • 其余部分除了 summary 全为必填
  • 另外,文章排序是按照 Notion 页面中无排序规则时的顺序而定。

Other known and unknow issues


💡
一些已知的不能渲染的 Notion blocks - Limited by react-notion
  • Latex or ketex → will cause an unexpected error .
  • @ date/time → will cause an unexpected error.
  • Link to page or mention page → will display as blank or cause an unexpected error.
  • Table of content → will display as blank.
  • No Shift + Enter in a callout → will display as blank.
  • 一个神奇的 block 👇
    • 用 GitHub 帐号登录 vercel.com 并导入 repository

© Margaret 2021 - 2024