Skip to content

feat(profile): serve shareable portfolio metadata - #376

Merged
VarshithReddy2006 merged 1 commit into
mainfrom
codex/issue-351-portfolio-og-shell
Nov 16, 2026
Merged

VarshithReddy2006 merged 1 commit into
mainfrom
codex/issue-351-portfolio-og-shell

Conversation

@vbtgongithub

Copy link
Copy Markdown
Collaborator

Closes #351

I added an Express route at /u/:username that serves OpenGraph and Twitter metadata from the published profile snapshot. It escapes profile text, redirects uppercase usernames to the lowercase canonical URL, and includes noindex when indexing is disabled. Browsers follow a same-origin script to the public SPA portfolio, with a link available when JavaScript is disabled. I wired the share route through Vite, Nginx, and Vercel.

I added weak ETags and a five-minute template cache backed by Redis when available. I recheck publication and privacy settings before using the cache or returning HTTP 304.

Validation

I ran 30 targeted tests covering crawler metadata, escaping, privacy changes, conditional HTTP requests, cache behavior, and signed-out SPA routing. Backend and frontend typechecks passed.

Limitations

I use the published HTTPS image when available and a static PNG otherwise. The description comes from the published snapshot. I did not verify deployed routing or live social unfurls.

Signed-off-by: VBTG <vuppubhanu18@gmail.com>
@vbtgongithub

Copy link
Copy Markdown
Collaborator Author

@VarshithReddy2006 I have implemented the changes for this issue. Please review my changes and merge this PR if everything looks good.

@VarshithReddy2006 VarshithReddy2006 added enhancement New feature or request help wanted Extra attention is needed nsoc26 level3 10 points - core logic, database changes, and complex features. labels Nov 16, 2026

@VarshithReddy2006 VarshithReddy2006 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM! Verified server-rendered OG shell with crawler metadata escaping, ETag caching, and nginx/vite proxy configs with passing CI.

@VarshithReddy2006
VarshithReddy2006 merged commit d6921b7 into main Nov 16, 2026
5 checks passed
@VarshithReddy2006
VarshithReddy2006 deleted the codex/issue-351-portfolio-og-shell branch November 16, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed level3 10 points - core logic, database changes, and complex features. nsoc26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(render,m8): build server-rendered OG shell with crawler metadata escaping and ETag caching in Express

2 participants