From 02bf5099924a0705cb1e11f1850534a3f032a6c4 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 22 May 2016 23:05:30 -0700 Subject: [PATCH] ruhroh --- server/routes.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/routes.js b/server/routes.js index a5b4535b0..359c1a039 100644 --- a/server/routes.js +++ b/server/routes.js @@ -17,12 +17,10 @@ const router = new Router(); // } // }); -console.log(process.env.NODE_ENV); - if (process.env.NODE_ENV === 'production') { router.get('/service-worker.js', async (ctx) => { ctx.set('Content-Type', 'application/javascript'); - const stats = await sendfile(ctx, path.join(__dirname, 'static/service-worker.js')); + const stats = await sendfile(ctx, path.join(__dirname, './static/service-worker.js')); if (!ctx.status) ctx.throw(httpErrors.NotFound()); });