Skip to content

Commit 9b20deb

Browse files
bob-obringerclaude
andauthored
fix(storybook): add base tag for /ui subpath URL resolution (#12)
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>
1 parent f9df42e commit 9b20deb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.storybook/manager-head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<base href="/ui/">
12
<meta property="og:title" content="Neynar UI" />
23
<meta property="og:description" content="AI-first React component library for coding agents. LLM-optimized docs, sensible defaults, zero config. Built on shadcn patterns, Base UI, and Tailwind CSS v4." />
34
<meta property="og:image" content="https://neynar-ui.vercel.app/share-image.png" />
@@ -7,7 +8,7 @@
78
<meta name="twitter:image" content="https://neynar-ui.vercel.app/share-image.png" />
89
<meta name="twitter:site" content="@neynarxyz" />
910

10-
<link rel="icon" type="image/svg+xml" href="/neynar-logo.svg" />
11+
<link rel="icon" type="image/svg+xml" href="neynar-logo.svg" />
1112

1213
<style>
1314
/* Hide the "Reset selection" option in toolbar dropdowns */

.storybook/preview-head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<base href="/ui/">
12
<style>
23
/* MDX docs table styling - darker alternating rows for dark mode */
34
.sbdocs-wrapper table tbody tr:nth-of-type(odd) {

0 commit comments

Comments
 (0)