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 path = require('path');
const etag = require('etag');
import path from 'path';
import etag from 'etag';
const getContentTypeHeader = require('../utils/getContentTypeHeader');
import getContentTypeHeader from '../utils/getContentTypeHeader';
function serveStaticFile(req, res) {
export default function serveStaticFile(req, res) {
const tags = ['file'];
const ext = path.extname(req.entry.name).substr(1);
@ -22,5 +22,3 @@ function serveStaticFile(req, res) {
})
.send(req.entry.content);
}
module.exports = serveStaticFile;