Skip to content

Commit

Permalink
add base path when building docs to make it work in gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sitek94 committed Nov 26, 2023
1 parent 254c55c commit a9de4ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},

async viteFinal(config, { configType }) {
// Make sure the base path is correct when deploying to GH pages
if (configType === 'PRODUCTION') {
config.base = '/pnpm-monorepo/'
}

return config
},
}

export default config

0 comments on commit a9de4ed

Please sign in to comment.