From cdd7469bd3ad56cbdfc5ece49d44f2a22512af6c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 25 Mar 2018 13:47:01 -0700 Subject: [PATCH] expose report.html and stats.json --- server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 46259d78..534ed12e 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,8 @@ -const app = require('express')() +const express = require('express') const compression = require('compression') const sapper = require('sapper') const serveStatic = require('serve-static') +const app = express() const { PORT = 4002 } = process.env @@ -20,6 +21,9 @@ app.use(serveStatic('assets', { } })) +app.use('/report.html', express.static('.sapper/client/report.html')) +app.use('/stats.json', express.static('.sapper/client/stats.json')) + app.use(sapper()) app.listen(PORT, () => {