Remove Firebase hosting, back to Express

This commit is contained in:
Michael Jackson
2019-01-26 15:20:15 -08:00
parent 0ae074e164
commit 5533725f64
32 changed files with 1174 additions and 5451 deletions

View File

@ -0,0 +1,12 @@
import express from 'express';
const staticMiddleware = express.static('public', { maxAge: '1y' });
export default function staticFiles(req, res, next) {
if (req.query.meta != null) {
// Let ?meta requests fall through.
return next();
}
staticMiddleware(req, res, next);
}