Compare commits

...

1 Commits

Author SHA1 Message Date
Koshi
4aaffbe097 fix: detect storybook when run via pnpm exec 2026-04-02 01:31:24 +02:00

View File

@@ -28,7 +28,9 @@ const ANALYZE_BUNDLE = process.env.ANALYZE_BUNDLE === 'true'
const VITE_REMOTE_DEV = process.env.VITE_REMOTE_DEV === 'true'
const DISABLE_TEMPLATES_PROXY = process.env.DISABLE_TEMPLATES_PROXY === 'true'
const GENERATE_SOURCEMAP = process.env.GENERATE_SOURCEMAP !== 'false'
const IS_STORYBOOK = process.env.npm_lifecycle_event === 'storybook'
const IS_STORYBOOK =
process.env.npm_lifecycle_event === 'storybook' ||
process.argv.some((arg) => arg.includes('storybook'))
// Open Graph / Twitter Meta Tags Constants
const VITE_OG_URL = 'https://cloud.comfy.org'