fix(npm): fix path of dist
This commit is contained in:
parent
c845f39fe8
commit
250d444f0b
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const syncloungeSocket = require('syncloungesocket');
|
const syncloungeSocket = require('syncloungesocket');
|
||||||
|
const path = require('path');
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
|
|
||||||
// Using a single function to handle multiple signals
|
// Using a single function to handle multiple signals
|
||||||
|
@ -26,6 +27,6 @@ const preStaticInjection = (router) => {
|
||||||
const socketConfig = syncloungeSocket.getConfig();
|
const socketConfig = syncloungeSocket.getConfig();
|
||||||
syncloungeSocket.socketServer({
|
syncloungeSocket.socketServer({
|
||||||
...socketConfig,
|
...socketConfig,
|
||||||
static_path: 'dist',
|
static_path: path.join(__dirname, 'dist'),
|
||||||
preStaticInjection,
|
preStaticInjection,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue