🐛 Fix storybook bug when build
parent
b901b7dfad
commit
909fa4bb3e
|
@ -149,13 +149,18 @@ export const getBranch = () => {
|
|||
* or hide some features.
|
||||
* @returns boolean
|
||||
*/
|
||||
export const isProduction = () =>
|
||||
import.meta.env.PROD && ['master', 'next'].includes(getBranch())
|
||||
export const isProduction = () => {
|
||||
return import.meta.env.PROD && ['master', 'next'].includes(getBranch())
|
||||
}
|
||||
|
||||
/**
|
||||
* Is a feature branche
|
||||
* @returns boolean
|
||||
*/
|
||||
export const isStaging = () => import.meta.env.PROD && !isProduction()
|
||||
export const isStaging = () => {
|
||||
return import.meta.env.PROD && !isProduction()
|
||||
}
|
||||
|
||||
export const isDevelopment = () => import.meta.env.DEV
|
||||
export const isDevelopment = () => {
|
||||
return import.meta.env.DEV
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue