mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
fix: broken production build due to isDemo() check
This commit is contained in:
parent
8bcc671ed1
commit
b7e8949a1a
1 changed files with 4 additions and 1 deletions
|
@ -40,4 +40,7 @@ export const copyText = (text: string): void => {
|
|||
document.execCommand('copy')
|
||||
}
|
||||
|
||||
export const isDemo = () => import.meta.env.VITE_KOEL_ENV === 'demo'
|
||||
export const isDemo = () => {
|
||||
// can't use one-liner as it would break production build with an "Unexpected token" error
|
||||
return import.meta.env.VITE_KOEL_ENV === 'demo'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue