Skip to content

Commit 0fae80b

Browse files
authored
Merge pull request #24 from nightt5879/nightt5879/fix-news-duplicate-id-1.3.3
Clean Astro content cache before builds for 1.3.3
2 parents d7cbdb4 + eea1475 commit 0fae80b

7 files changed

Lines changed: 23 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.3.3] - 2026-05-03
8+
9+
### Changed
10+
- Bumped the package version from `1.3.2` to `1.3.3` for build-log stability cleanup.
11+
- Cleared Astro's `.astro` content cache before each site build, matching the existing clean `dist/` build behavior.
12+
13+
### Fixed
14+
- Removed stale-content-cache duplicate news id warnings from repeated local and configured builds.
15+
716
## [1.3.2] - 2026-05-03
817

918
### Changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ venue: "Conference Name"
224224
- `1.3.0`:CMS 文件管理后台,扩展到新闻、成员、论文、招生与现有项目文件
225225
- `1.3.1`:CMS 线上启用跟进,补 Cloudflare Worker OAuth 代理部署包与生产环境变量验收说明
226226
- `1.3.2`:CMS 稳定性补丁,补齐旧新闻 `slug`、清理后台测试残留,并收紧新闻 slug 校验
227+
- `1.3.3`:构建日志清理,构建前清理 Astro 内容缓存,消除重复 news id warning
227228

228229
## License
229230

README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ venue: "Conference Name"
225225
- `1.3.0`: CMS file management for news, members, papers, recruitment pages, and existing project files
226226
- `1.3.1`: CMS live enablement follow-up with a Cloudflare Worker OAuth proxy package and production environment validation notes
227227
- `1.3.2`: CMS stability patch that adds stable legacy news slugs, removes CMS test residue, and tightens news slug validation
228+
- `1.3.3`: build-log cleanup that clears Astro content cache before builds to remove duplicate news id warnings
228229

229230
## License
230231

docs/roadmap.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Roadmap
22

3-
更新时间:2026-05-03(1.3.2 CMS stability hardening
3+
更新时间:2026-05-03(1.3.3 build-log cleanup
44

55
## 1.0.1 基线修复
66

@@ -74,6 +74,12 @@
7474
- 收紧新闻 `slug` 提示、校验和 smoke 检查,要求以小写字母开头,不包含日期前缀
7575
- 文档补充 Save -> Ready -> Publish now 的后台发布流程说明
7676

77+
## 1.3.3 构建日志清理
78+
79+
已完成:
80+
- 构建前同步清理 `dist/``.astro`,避免 stale content cache 造成重复 news id warning
81+
- 保持 CMS 范围、公开路由和内容模型不变
82+
7783
## T-0015 真实上线闭环演练
7884

7985
已完成:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "double-duck-lab",
33
"type": "module",
4-
"version": "1.3.2",
4+
"version": "1.3.3",
55
"private": true,
66
"scripts": {
77
"dev": "astro dev",

scripts/build-site.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import fs from 'node:fs';
44
import path from 'node:path';
55

66
const distDir = path.resolve('dist');
7+
const astroCacheDir = path.resolve('.astro');
78
const astroEntry = path.resolve('node_modules/astro/astro.js');
89

910
fs.rmSync(distDir, { recursive: true, force: true });
11+
fs.rmSync(astroCacheDir, { recursive: true, force: true });
1012

1113
if (process.env.ASTRO_TELEMETRY_DISABLED === undefined) {
1214
process.env.ASTRO_TELEMETRY_DISABLED = '1';

0 commit comments

Comments
 (0)