build: 提交前端产物 + 构建前清理 dist - #5
Merged
Merged
Conversation
The dist/ output was gitignored and the running instance therefore kept serving an old bundle, so the new user-group and API-key-delete UI never appeared. - Track dist/ so pulling the repo updates the served frontend - Clean dist before building: vite was not emptying outDir here, and the folder had accumulated 285 stale bundles (51 MB, back to July) of which only 4 files were ever referenced Co-Authored-By: Claude Code <noreply@anthropic.com>
Merged
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.
PR #4 合入后,
main上只有源码,没有构建产物。由于dist/此前被 gitignore 且部署直接使用dist/,从main部署会继续吐旧 bundle,新界面不生效。本 PR 补齐:
dist/入库 —— 拉代码即可更新被服务的前端outDir,导致dist/assets/累积了 285 个陈旧 bundle(51MB,最早到 7 月),而实际被引用的只有 4 个文件package.json新增clean:dist,build先清后构建验证
/引用index-CkIGdnVN.js,该 bundle 含新增的删除密钥按钮DELETE /api/account/api-keys/:id→{"deleted":true}