Skip to content

Commit

Permalink
apply global for CONFIG_TYPE in the preview annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 29, 2024
1 parent 65161ab commit 60ec2fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions code/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { DocsPageWrapper } from '../lib/blocks/src/components';
import { isChromatic } from './isChromatic';

const { document } = global;
globalThis.CONFIG_TYPE = 'DEVELOPMENT';

const ThemeBlock = styled.div<{ side: 'left' | 'right'; layout: string }>(
{
Expand Down
2 changes: 0 additions & 2 deletions code/.storybook/storybook.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import * as projectAnnotations from './preview';

vi.spyOn(console, 'warn').mockImplementation((...args) => console.log(...args));

globalThis.CONFIG_TYPE = 'DEVELOPMENT';

const annotations = setProjectAnnotations([
// @ts-expect-error check type errors later
projectAnnotations,
Expand Down

0 comments on commit 60ec2fe

Please sign in to comment.