Experimental port to Firebase hosting

This commit is contained in:
Michael Jackson
2019-01-05 16:50:05 -08:00
parent e4d6df255e
commit 31e7d3865a
300 changed files with 129300 additions and 5817 deletions

View File

@ -1,9 +1,9 @@
const createSearch = require('../utils/createSearch');
import createSearch from '../utils/createSearch';
/**
* Redirect old URLs that we no longer support.
*/
function redirectLegacyURLs(req, res, next) {
export default function redirectLegacyURLs(req, res, next) {
// Permanently redirect /_meta/path to /path?meta.
if (req.path.match(/^\/_meta\//)) {
req.query.meta = '';
@ -19,5 +19,3 @@ function redirectLegacyURLs(req, res, next) {
next();
}
module.exports = redirectLegacyURLs;