import { resolve } from "path" ; import { existsSync } from "fs" ; const bundledPath = resolve ( __dirname , ".." , ".." , "dist" , "server.js" ) ; const sourcesPath = resolve ( __dirname , "server.js" ) ; const isDevelopmentRun = existsSync ( resolve ( __dirname , ".." , ".." , "node_modules" ) ) ; export const SERVER_PATH = isDevelopmentRun ? sourcesPath : bundledPath ;