Skip to content

fix(storybook): add base tag for /ui subpath URL resolution#12

Merged
bob-obringer merged 1 commit intomainfrom
bobo/neyn-8505-storybook-base-tag-fix
Jan 13, 2026
Merged

fix(storybook): add base tag for /ui subpath URL resolution#12
bob-obringer merged 1 commit intomainfrom
bobo/neyn-8505-storybook-base-tag-fix

Conversation

@bob-obringer
Copy link
Collaborator

Summary

  • Added <base href="/ui/"> to manager-head.html and preview-head.html
  • Fixed favicon path to be relative (works with base tag)

The viteFinal config from PR #11 wasn't sufficient - the browser was still resolving relative URLs from the root instead of /ui/. The <base> tag fixes this.

Test plan

  • Verify Storybook loads at https://neynar.com/ui
  • Confirm assets load correctly (no 404s)
  • Check that navigation between stories works

Fixes NEYN-8505

🤖 Generated with Claude Code

The viteFinal config alone wasn't sufficient for subpath deployment.
Added <base href="/ui/"> to both manager-head.html and preview-head.html
to ensure all relative URLs resolve correctly.

Also fixed favicon path to be relative (works with base tag).

Fixes NEYN-8505

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 13, 2026

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

Project Deployment Review Updated (UTC)
ui Building Building Preview, Comment Jan 13, 2026 7:08pm

@bob-obringer bob-obringer merged commit 9b20deb into main Jan 13, 2026
2 of 3 checks passed
@bob-obringer bob-obringer deleted the bobo/neyn-8505-storybook-base-tag-fix branch January 13, 2026 19:08
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.

1 participant