Skip to content

Commit

Permalink
fix: build storybook as part of site deploy script (#2741)
Browse files Browse the repository at this point in the history
* fix: build storybook as part of site deploy script

Resolves an issue where Storybook was not being built,
and the Docs site link to its deploy was resulting in a 404.

* fix(site): update path for SB site

* Update package.json

Co-authored-by: [ Cassondra ] <[email protected]>

---------

Co-authored-by: [ Cassondra ] <[email protected]>
  • Loading branch information
pfulton and castastrophe authored May 8, 2024
1 parent f487f47 commit 3a18257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"build": "yarn builder tag:component",
"build:preview": "nx build storybook",
"build:site": "nx build docs",
"build:site": "nx clean docs && nx build docs && nx run storybook:build:docs",
"builder": "nx run-many --target build --projects",
"changeset": "changeset",
"ci": "cross-env NODE_ENV=production yarn builder tag:component,ui-icons --skip-nx-cache",
Expand Down
2 changes: 1 addition & 1 deletion site/includes/nav.pug
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
a.spectrum-SideNav-itemLink(href='https://spectrum.adobe.com', target='_blank', rel='noopener')
span.spectrum-SideNav-link-text Spectrum
li.spectrum-SideNav-item
a.spectrum-SideNav-itemLink(href=process.env.CHROMATIC_URL ? process.env.CHROMATIC_URL : 'preview/', rel='noopener')
a.spectrum-SideNav-itemLink(href=process.env.CHROMATIC_URL ? process.env.CHROMATIC_URL : 'preview/index.html', rel='noopener')
span.spectrum-SideNav-link-text Component preview

0 comments on commit 3a18257

Please sign in to comment.