Server render the main page

Also, add hashes to asset file names and use the "entry manifest" plugin
in dev to get auto-reloading.
This commit is contained in:
Michael Jackson
2019-01-12 19:27:28 -08:00
parent 45c48cba26
commit 09914c1db4
176 changed files with 2725 additions and 119822 deletions

View File

@ -2,6 +2,7 @@ import { https } from 'firebase-functions';
// import serveAuth from './serveAuth';
import serveAutoIndexPage from './serveAutoIndexPage';
import serveMainPage from './serveMainPage';
import serveNpmPackageFile from './serveNpmPackageFile';
import servePublicKey from './servePublicKey';
import serveStats from './serveStats';
@ -9,6 +10,7 @@ import serveStats from './serveStats';
export default {
// serveAuth: https.onRequest(serveAuth),
serveAutoIndexPage: https.onRequest(serveAutoIndexPage),
serveMainPage: https.onRequest(serveMainPage),
serveNpmPackageFile: https.onRequest(serveNpmPackageFile),
servePublicKey: https.onRequest(servePublicKey),
serveStats: https.onRequest(serveStats)

View File

@ -0,0 +1,10 @@
import express from 'express';
import serveMainPage from '../actions/serveMainPage';
const app = express();
app.disable('x-powered-by');
app.use(serveMainPage);
export default app;