Skip to content

docs(og): 修正重渲命令,别把 Chrome 配置目录写进仓库 - #8

Merged
jacob-bytes merged 1 commit into
mainfrom
chore/og-card-comment
Sep 26, 2026
Merged

jacob-bytes merged 1 commit into
mainfrom
chore/og-card-comment

Conversation

@jacob-bytes

Copy link
Copy Markdown
Collaborator

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 本身没变。

`preview/shot.mjs` 默认用 cwd 下的 `.chrome-profile` 当 Chrome 配置目录。
按我原先写在这份文件里的命令(在仓库根目录跑)执行,就会往仓库里塞
2.8 MB 的浏览器垃圾 —— 已经发生过一次,`git status` 里多出个未跟踪目录。

命令加上 `PREVIEW_PROFILE=/tmp/chrome-og`,并把原因写进注释。
@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: In progress 🔵

View logs ↗
2bb48da 2026-09-26T13:57:00.229Z View logs ↗

@jacob-bytes
jacob-bytes merged commit ba67129 into main Sep 26, 2026
1 of 2 checks passed
@jacob-bytes
jacob-bytes deleted the chore/og-card-comment branch September 26, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant