From 250d444f0bc99cd383de7865a90e6496c0dcb695 Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Tue, 15 Sep 2020 23:52:11 -0500 Subject: [PATCH] fix(npm): fix path of dist --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index e9fdb9b0..d9b95f51 100755 --- a/server.js +++ b/server.js @@ -1,6 +1,7 @@ #!/usr/bin/env node const syncloungeSocket = require('syncloungesocket'); +const path = require('path'); const config = require('./config'); // Using a single function to handle multiple signals @@ -26,6 +27,6 @@ const preStaticInjection = (router) => { const socketConfig = syncloungeSocket.getConfig(); syncloungeSocket.socketServer({ ...socketConfig, - static_path: 'dist', + static_path: path.join(__dirname, 'dist'), preStaticInjection, });