Skip to content

Implements https://github.com/l3montree-dev/devguard/issues/1879#705

Merged
seb-kw merged 2 commits intomainfrom
support-umami-analytics
Apr 17, 2026
Merged

Implements https://github.com/l3montree-dev/devguard/issues/1879#705
seb-kw merged 2 commits intomainfrom
support-umami-analytics

Conversation

@seb-kw
Copy link
Copy Markdown
Member

@seb-kw seb-kw commented Apr 17, 2026

No description provided.

Signed-off-by: Sebastian Kawelke <sebastian.kawelke@l3montree.com>
Copilot AI review requested due to automatic review settings April 17, 2026 16:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements issue #1879 by hardening externally-configured theme/analytics asset URLs and wiring them into the Next.js root layout so optional theme and analytics resources can be loaded safely from configuration.

Changes:

  • Added parseHttpsUrl helper to validate absolute HTTPS URLs and ignore invalid inputs.
  • Restructured theme config into config.theme (with optional JS integrity) and added config.analytics (script URL, website ID, optional integrity).
  • Updated RootLayout to inject optional theme CSS/JS and analytics scripts based on the new config shape.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/config.ts Adds HTTPS URL parsing/validation and introduces structured theme/analytics config entries.
src/app/layout.tsx Updates layout to conditionally emit theme and analytics <link>/<script> tags using the new config fields (incl. optional SRI).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config.ts Outdated
Signed-off-by: Sebastian Kawelke <sebastian.kawelke@l3montree.com>
@seb-kw seb-kw merged commit 235fdda into main Apr 17, 2026
18 checks passed
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.

3 participants