Browse Source

Fix prod serving of index.html

Thomas Dy 10 years ago
parent
commit
ce23045879
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server.js

+ 1 - 0
server.js

@@ -12,6 +12,7 @@ var app = connect();
 var serve = serveStatic('.', {'index': []});
 var serve = serveStatic('.', {'index': []});
 var serveIndex = function(req, res, next) {
 var serveIndex = function(req, res, next) {
     if(isProd) {
     if(isProd) {
+        req.url = '/index.html';
         serve(req, res, next);
         serve(req, res, next);
     }
     }
     else {
     else {