Serve static folder and static code files before trying to run renderer.

This commit is contained in:
Dillon Kearns 2021-05-05 10:10:09 -07:00
parent 7c90a2eb9a
commit 4a7279ff7f

View File

@ -72,10 +72,9 @@ async function start(options) {
const app = connect()
.use(timeMiddleware())
.use(processRequest)
.use(serveStaticCode)
.use(serveGeneratedFiles)
.use(serve);
.use(serve)
.use(processRequest);
http.createServer(app).listen(port);
/**
* @param {http.IncomingMessage} request