Repository navigation
docs(og): 修正重渲命令,别把 Chrome 配置目录写进仓库 - #8
Merged
Merged
Conversation
`preview/shot.mjs` 默认用 cwd 下的 `.chrome-profile` 当 Chrome 配置目录。 按我原先写在这份文件里的命令(在仓库根目录跑)执行,就会往仓库里塞 2.8 MB 的浏览器垃圾 —— 已经发生过一次,`git status` 里多出个未跟踪目录。 命令加上 `PREVIEW_PROFILE=/tmp/chrome-og`,并把原因写进注释。
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
preview/shot.mjs默认拿 cwd 下的.chrome-profile当 Chrome 配置目录。我在scripts/og-card.html里写的重渲命令是「在仓库根目录执行」,照着跑就会往仓库里塞 2.8 MB 浏览器垃圾(已实际发生一次,git status里多出未跟踪目录)。命令改为
PREVIEW_PROFILE=/tmp/chrome-og node ../preview/shot.mjs ...,并把原因写进注释,免得下次又照着文档踩一遍。纯注释改动,
public/og.png本身没变。