diff --git a/apps/docs/.storybook/main.ts b/apps/docs/.storybook/main.ts index 61d0afb..8fa854d 100644 --- a/apps/docs/.storybook/main.ts +++ b/apps/docs/.storybook/main.ts @@ -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