constpath=require('path');constexpress=require('express');const{chalkSuccess}=require('./config/chalk.config');constproxyConfig=require('./config/proxy.prod.config');constproxyBuild=require('./utils/proxy.build');// create app serverconstapp=express();constport=3000;// host proxyapp.use(proxyBuild(proxyConfig));// use index.htmlapp.use(express.static(path.join(__dirname,'dist/static')));app.use(express.static(path.join(__dirname,'dist')));app.use((req,res)=>{res.sendFile(path.join(__dirname,'dist','index.html'));});app.listen(port,error=>{if(error){console.error(error);}else{console.info(chalkSuccess('==> 🌎 Listening on port %s. '+'Open up http://localhost:%s/ in your browser.'),port,port);}});