[addon] serves static videos from the addon

This commit is contained in:
TheBeastLT
2020-06-22 11:02:39 +02:00
parent 08de496403
commit 51329e19a8
7 changed files with 8 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ const serverless = require('./serverless');
const app = express();
app.use(express.static('static', { maxAge: '1y' }));
app.use((req, res, next) => serverless(req, res, next));
app.listen(process.env.PORT || 7000, () => {
console.log(`Started addon at: http://localhost:${process.env.PORT || 7000}`)