```js filename=".storybook/main.js" renderer="common" language="js" export default { // Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite) framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], // 👇 Retrieve the current environment from the configType argument refs: (config, { configType }) => { if (configType === 'DEVELOPMENT') { return { react: { title: 'Composed React Storybook running in development mode', url: 'http://localhost:7007', }, angular: { title: 'Composed Angular Storybook running in development mode', url: 'http://localhost:7008', }, }; } return { react: { title: 'Composed React Storybook running in production', url: 'https://your-production-react-storybook-url', }, angular: { title: 'Composed Angular Storybook running in production', url: 'https://your-production-angular-storybook-url', }, }; }, }; ``` ```ts filename=".storybook/main.ts" renderer="common" language="ts" // Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite) import type { StorybookConfig } from '@storybook/your-framework'; const config: StorybookConfig = { framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], // 👇 Retrieve the current environment from the configType argument refs: (config, { configType }) => { if (configType === 'DEVELOPMENT') { return { react: { title: 'Composed React Storybook running in development mode', url: 'http://localhost:7007', }, angular: { title: 'Composed Angular Storybook running in development mode', url: 'http://localhost:7008', }, }; } return { react: { title: 'Composed React Storybook running in production', url: 'https://your-production-react-storybook-url', }, angular: { title: 'Composed Angular Storybook running in production', url: 'https://your-production-angular-storybook-url', }, }; }, }; export default config; ```