storybook/docs/snippets/common/storybook-main-disable-telemetry.main-ts.ts.mdx
2022-07-07 19:26:21 +01:00

23 lines
588 B
Plaintext

```ts
// .storybook/main.ts
// Imports Storybook's configuration API
import type { StorybookConfig } from '@storybook/core-common';
const config: StorybookConfig = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/preset-create-react-app',
],
framework: '@storybook/react',
core: {
builder: '@storybook/builder-webpack5',
disableTelemetry: true, // 👈 Disables telemetry
},
};
module.exports = config;
```