docs/_snippets/nextjs-remove-addons.md
export default {
// ...
addons: [
// ...
// ๐ These can both be removed
// 'storybook-addon-next',
// 'storybook-addon-next-router',
],
};
// Replace your-framework with nextjs or nextjs-vite
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
// ...
addons: [
// ...
// ๐ These can both be removed
// 'storybook-addon-next',
// 'storybook-addon-next-router',
],
};
export default config;
// Replace your-framework with nextjs or nextjs-vite
import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// ...
addons: [
// ...
// ๐ These can both be removed
// 'storybook-addon-next',
// 'storybook-addon-next-router',
],
});
// Replace your-framework with nextjs or nextjs-vite
import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// ...
addons: [
// ...
// ๐ These can both be removed
// 'storybook-addon-next',
// 'storybook-addon-next-router',
],
});