Skip to content

refactor(blog): centralize configuration constants#10

Merged
CagesThrottleUs merged 2 commits intomainfrom
cages/fix-hardcoded-urls
Nov 30, 2025
Merged

refactor(blog): centralize configuration constants#10
CagesThrottleUs merged 2 commits intomainfrom
cages/fix-hardcoded-urls

Conversation

@CagesThrottleUs
Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: CagesThrottleUs <manstein.felix@gmail.com>
Extract hardcoded blog repository URLs, branch names, and cache
duration from BlogCard and blogService into constants.ts.

This change establishes a single source of truth for blog
configuration, making the codebase more maintainable and easier
to update when repository or branch names change.

Changes:
- Add BLOG_REPO, BLOG_BRANCH, BLOG_BASE_URL, and
  BLOG_CACHE_DURATION to constants.ts
- Update blogService.ts to import and use centralized constants
- Update BlogCard.tsx to use BLOG_BASE_URL for thumbnail images

Signed-off-by: CagesThrottleUs <manstein.felix@gmail.com>
@CagesThrottleUs CagesThrottleUs merged commit 03190c5 into main Nov 30, 2025
2 checks passed
@CagesThrottleUs CagesThrottleUs deleted the cages/fix-hardcoded-urls branch November 30, 2025 04:52
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