Skip to content
Discussion options

You must be logged in to vote

I found the solution in the docs: https://storybook.rsbuild.dev/guide/faq.html#deploy-storybook-to-a-subdirectory--subpath

export default {
    stories: [
        '../src/**/*.stories.mdx',
        '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)',
    ],
    addons: ['@storybook/addon-essentials', 'storybook-addon-rslib'],
    framework: 'storybook-react-rsbuild',
    rsbuildFinal: (config) => {
        config.output ??= {}
        config.output.assetPrefix = (process.env.BASE_PATH || '') + '/'
        // Customize the final Rsbuild config here
        return config
    },
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Andres6936
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant