Repository navigation
fix(OPENFRAM-007-2): CU-86akhf8u5 2 review findings in layout.tsx #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ import { RegistrationAttributionCapture } from './components/registration-attrib | |
| import { TokenFreshnessWatcher } from './components/token-freshness-watcher'; | ||
|
|
||
| export const metadata: Metadata = { | ||
| metadataBase: new URL(process.env.NEXT_PUBLIC_APP_URL || 'https://openframe.ai'), | ||
| metadataBase: new URL(runtimeEnv.appUrl()), | ||
|
|
||
| title: { | ||
| default: 'OpenFrame - AI-Driven Open-Source OS for MSPs', | ||
|
|
@@ -41,7 +41,7 @@ export const metadata: Metadata = { | |
| openGraph: { | ||
| type: 'website', | ||
| locale: 'en_US', | ||
| url: process.env.NEXT_PUBLIC_APP_URL || 'https://openframe.ai', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π Direct process.env.NEXT_PUBLIC_APP_URL read in openGraph.url bypasses runtimeEnv Replaced π€ Prompt for AI agentsfix confidence: π΄ 40 low β review closely β react π/π to teach the reviewer |
||
| url: runtimeEnv.appUrl(), | ||
| siteName: 'OpenFrame', | ||
| title: 'OpenFrame - AI-Driven Open-Source OS for MSPs', | ||
| description: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π Direct process.env.NEXT_PUBLIC_APP_URL reads bypass the runtimeEnv abstraction
Replaced
new URL(process.env.NEXT_PUBLIC_APP_URL || 'https://openframe.ai')inmetadata.metadataBasewithnew URL(runtimeEnv.appUrl())in src/app/layout.tsx. This assumesruntimeEnv.appUrl()exists (or will be added) on theruntimeEnvobject exported from src/lib/runtime-config.ts and returns a string with the same fallback ('https://openframe.ai') baked in; since I cannot see/edit that file in this task, this accessor must be added there for the build to compile β without it this is a broken import member, not a working fix.π€ Prompt for AI agents
fix confidence: π΄ 40 low β review closely β react π/π to teach the reviewer