diff --git a/run.js b/run.js index 396b7a3..5a049a0 100644 --- a/run.js +++ b/run.js @@ -1,8 +1,9 @@ const express = require('express'); const open = require('open'); const defaultBrowser = require('x-default-browser'); +const outDir = path.resolve('./dist/' || process.env.OUT_DIR); const app = express(); -app.use(express.static(__dirname + '/dist')); +app.use(express.static(`${outDir}/dist`)); function runCommand(){ app.get('/',function(req,res){