refactor(server/utils): isDev move to utils and replace fn with boolean

this value cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
This commit is contained in:
Panagiotis Papadopoulos
2025-01-22 19:08:38 +01:00
committed by Elian Doran
parent 13a1b42e12
commit 818cc30650
9 changed files with 18 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
import assetPath from "./asset_path.js";
import env from "./env.js";
import { isDev } from "./utils.js";
export default env.isDev() ? assetPath + "/app" : assetPath + "/app-dist";
export default isDev ? assetPath + "/app" : assetPath + "/app-dist";