import express from "express" ; import errorHandler from "./errorHandler" ; import staticRoute from "./staticRoute" ; export default function staticServerAdapter ( options ) { return ( express ( ) . disable ( "x-powered-by" ) . set ( "trust proxy" , true ) . get ( "*" , staticRoute ( options ) ) . use ( errorHandler ( ) ) ) ; }