{"code":"var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});import express from\"express\";import fs from\"fs\";import path from\"path\";function serveStatic(app){const distPath=path.resolve(__dirname,\"public\");if(!fs.existsSync(distPath)){throw new Error(`Could not find the build directory: ${distPath}, make sure to build the client first`)}app.use(express.static(distPath));app.use(\"*\",(_req,res)=>{res.sendFile(path.resolve(distPath,\"index.html\"))})}__name(serveStatic,\"serveStatic\");export{serveStatic};\n","warnings":[],"map":{"version":3,"mappings":"kHAAA,OAAO,YAA+B,UACtC,OAAO,OAAQ,KACf,OAAO,SAAU,OAEV,SAAS,YAAY,IAAc,CACxC,MAAM,SAAW,KAAK,QAAQ,UAAW,QAAQ,EACjD,GAAI,CAAC,GAAG,WAAW,QAAQ,EAAG,CAC5B,MAAM,IAAI,MACR,uCAAuC,QAAQ,uCACjD,CACF,CAEA,IAAI,IAAI,QAAQ,OAAO,QAAQ,CAAC,EAGhC,IAAI,IAAI,IAAK,CAAC,KAAM,MAAQ,CAC1B,IAAI,SAAS,KAAK,QAAQ,SAAU,YAAY,CAAC,CACnD,CAAC,CACH,CAdgB","names":[],"ignoreList":[],"sources":["/root/ethreyas/server/static.ts"],"sourcesContent":[null]}}