Skip to content

refactor: extract hardcoded CDN URLs into constants file - #14

Open
Krshm10 wants to merge 2 commits into
coderanik:mainfrom
Krshm10:fix/cdn-urls-constants
Open

refactor: extract hardcoded CDN URLs into constants file#14
Krshm10 wants to merge 2 commits into
coderanik:mainfrom
Krshm10:fix/cdn-urls-constants

Conversation

@Krshm10

@Krshm10 Krshm10 commented Jul 17, 2026

Copy link
Copy Markdown

Description

Extracted 3 hardcoded CDN URLs (latex.js ,base.css, article.css, and KaTeX CSS) from LatexHtmlPreview.tsx into a new constants file at frontend/src/lib/cdnUrls.ts . This makes future library version updates a one-line change instead of requiring edits inside component code.

Fixes #8

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring / Code cleanup (no functional changes)
  • Documentation update

Testing and Verification

  • I have ran the local development environment (./scripts/dev.sh) and verified my changes manually.
  • I have verified that all TypeScript compilations pass without errors: npm run build or npx tsc --noEmit.
  • I have run the linting suite locally: npm run lint.
  • (If applicable) I have verified that the LaTeX compilation worker builds and runs successfully in Docker.

Screenshots / Code Diffs (if applicable)

Not applicable. This is a refactoring change with no UI or functional impact.

Checklist

  • My code follows the contributing guidelines of this project.
  • I have updated the documentation / README if necessary.
  • My changes do not generate new compiler or linter warnings.
  • I have added comments to my code, particularly in hard-to-understand areas.

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

@Krshm10 is attempting to deploy a commit to the CoderAnik Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
glyph-frontend Ready Ready Preview Aug 5, 2026 3:45am

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.

Extract hardcoded CDN URLs into a constants file

1 participant