Replies: 1 comment 2 replies
-
To change the Inside the configuration file, you can specify the // .storybook/main.js
module.exports = {
// other Storybook config options...
core: {
builder: 'storybook-builder-vite',
},
viteFinal(config) {
// Update the base path
config.base = '/';
return config;
},
}; In the above example, we are using the Save the configuration file, and then restart Storybook. The base path should be updated to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am implementing Storybook into a project using vite-plugin-ssr. When I tried to
pnpm dlx storybook@latest init
to see how it works, I encountered the following error.My two questions are as follows.
Why is
base
set to./
.Is there any way to disable this setting
Beta Was this translation helpful? Give feedback.
All reactions