@stemy/backend 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,7 @@ import cron from 'node-cron';
|
|
|
24
24
|
import { socket } from 'zeromq';
|
|
25
25
|
import { filter as filter$1, map, first, timeout } from 'rxjs/operators';
|
|
26
26
|
import { createServer } from 'http';
|
|
27
|
-
import express_
|
|
27
|
+
import express_ from 'express';
|
|
28
28
|
import { Server } from 'socket.io';
|
|
29
29
|
import { v4 } from 'uuid';
|
|
30
30
|
import { createTransport } from 'nodemailer';
|
|
@@ -3649,7 +3649,7 @@ async function setupStatic(rootFolder, container) {
|
|
|
3649
3649
|
console.log(browserFolder, existsSync(browserFolder));
|
|
3650
3650
|
if (existsSync(browserFolder)) {
|
|
3651
3651
|
console.log(`public_html exists. setting up static files serving...`);
|
|
3652
|
-
app.use(static
|
|
3652
|
+
app.use(express_.static(browserFolder, {
|
|
3653
3653
|
maxAge: "1y"
|
|
3654
3654
|
}));
|
|
3655
3655
|
}
|