Skip to content

Commit e39e190

Browse files
committed
chore: removed some comments
1 parent ccf70f7 commit e39e190

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-setup",
3-
"version": "1.5.7",
3+
"version": "1.5.8",
44
"description": "A lightweight React setup: Babel, React, React Router, React Boostrap, React-intl, Mocha, Webpack HMR, PostCSS, ESLint",
55
"private": true,
66
"author": "Duc Ng (https://github.com/ngduc)",

prodServer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ const express = require('express');
66
const app = express();
77
const fs = require('fs');
88

9-
//import { getLocaleMessages } from './tools/i18n';
109
const i18n = require('./tools/i18n');
1110

12-
// don't use default index.html to avoid conflict with app.get '*' function.
13-
app.use(express.static(__dirname + '/dist', { index: 'index.dummy' }));
11+
// use dummy index so app.get('*') can handle the root url (instead of serving dist/index.html raw file)
12+
app.use(express.static(__dirname + '/dist', { index: 'dummy_file' }));
1413

1514
app.get('*', (req, res) => {
1615
const locale = req.query.loc || 'en-US';

0 commit comments

Comments
 (0)