Skip to content

Commit

Permalink
do not externalize if not CDN, isCDN!=true
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Sep 18, 2024
1 parent 7546ce7 commit e55e9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/atomic/.storybook/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'node:path';
import {mergeConfig} from 'vite';
import headlessJson from '../../../packages/headless/package.json';

const isCDN = process.env.DEPLOYMENT_ENVIRONMENT === 'CDN' || true;
const isCDN = process.env.DEPLOYMENT_ENVIRONMENT === 'CDN';

const config: StorybookConfig = {
stories: ['../src/**/*.new.stories.@(js|jsx|ts|tsx|mdx)'],
Expand All @@ -24,7 +24,7 @@ const config: StorybookConfig = {
mergeConfig(config, {
plugins: [
nxViteTsPaths(),
configType === 'PRODUCTION' && externalizeDependencies(),
configType === 'PRODUCTION' && isCDN && externalizeDependencies(),
],
}),
};
Expand Down

0 comments on commit e55e9d8

Please sign in to comment.