Skip to content

chore: Make FontAwesome CDN URL configurable via environment variable - #424

Open
Strehk wants to merge 2 commits into
mainfrom
claude/fontawesome-cdn-env-8zp103
Open

chore: Make FontAwesome CDN URL configurable via environment variable#424
Strehk wants to merge 2 commits into
mainfrom
claude/fontawesome-cdn-env-8zp103

Conversation

@Strehk

@Strehk Strehk commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

Replaces hardcoded FontAwesome CDN URL with a configurable environment variable, allowing the CDN endpoint to be changed without modifying source code.

Changes

  • src/app.html: Replaced hardcoded FontAwesome CDN links with template placeholders (%fontawesome.baseUrl%) for dynamic URL injection
  • .env.example: Added PUBLIC_FONTAWESOME_CSS_BASE_URL environment variable with documentation and default value pointing to the existing CDN
  • src/config/public.ts: Added PUBLIC_FONTAWESOME_CSS_BASE_URL to the public configuration schema with Zod validation
  • src/hooks.server.ts: Updated the page chunk transformation to replace the FontAwesome URL placeholder with the configured value at runtime, alongside the existing locale replacement

Implementation Details

The FontAwesome CSS base URL is now injected during server-side rendering via the transformPageChunk hook, ensuring the correct URL is used regardless of the deployment environment. This follows the existing pattern used for locale injection and allows the CDN endpoint to be updated (e.g., if the FontAwesome CDN moves) by simply changing the environment variable without code changes.

https://claude.ai/code/session_01T4QrtB6cFFZPx8VnAuiK4F

The FontAwesome CDN location changed again. Introduce a required
PUBLIC_FONTAWESOME_CSS_BASE_URL environment variable so the CSS base
URL can be configured in production instead of being hard-coded in
app.html. The stylesheet links now use a %fontawesome.baseUrl%
placeholder that is substituted in the server hook.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T4QrtB6cFFZPx8VnAuiK4F
@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Strehk, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 29145656-068b-479f-a0a6-1964f4aa7111

📥 Commits

Reviewing files that changed from the base of the PR and between 05f61d1 and 70092b6.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • .env.example
  • package.json
  • src/app.html
  • src/config/public.ts
  • src/hooks.server.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fontawesome-cdn-env-8zp103

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Strehk Strehk added the PR: Bug Something isn't working label Jul 5, 2026
@Strehk Strehk changed the title Make FontAwesome CDN URL configurable via environment variable chore: Make FontAwesome CDN URL configurable via environment variable Jul 5, 2026
Trivy flagged nodemailer 7.0.13 with GHSA-p6gq-j5cr-w38f (HIGH): the
message-level raw option bypasses disableFileAccess/disableUrlAccess.
The vulnerability is not reachable in this codebase (emailService only
sends from/to/subject/html/text/replyTo, never raw or attachments), but
upgrading to 9.0.3 removes the finding at the source and unblocks the
security CI check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T4QrtB6cFFZPx8VnAuiK4F

@m1212e m1212e left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a reasonable default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants