const ParcelProxyServer = require ( 'parcel-proxy-server' ) ; const server = new ParcelProxyServer ( { entryPoint : [ './index.html' , './static/**/*' ] , parcelOptions : { https : { cert : './localhost.crt' , key : './localhost.key' } , watch : true } , proxies : { '/api' : { target : 'http://localhost:3000' } } } ) ; let port = 1234 ; server . listen ( port , ( ) => { console . log ( `Frontend server running on https://localhost:${ port }` ) ; } ) ;