Showing
1 changed file
with
1 additions
and
5 deletions
@@ -35,7 +35,7 @@ const routes = [ | @@ -35,7 +35,7 @@ const routes = [ | ||
35 | }, | 35 | }, |
36 | ]; | 36 | ]; |
37 | 37 | ||
38 | -const isDev = false;//process.env.NODE_ENV === 'development' || !process.env.NODE_ENV; | 38 | +const isDev = process.env.NODE_ENV === 'development' || !process.env.NODE_ENV; |
39 | let renderer; | 39 | let renderer; |
40 | let template = fs.readFileSync(path.join(__dirname, '../../src/index.html'), 'utf-8'); | 40 | let template = fs.readFileSync(path.join(__dirname, '../../src/index.html'), 'utf-8'); |
41 | 41 | ||
@@ -44,10 +44,6 @@ const microCache = LRU({ // eslint-disable-line | @@ -44,10 +44,6 @@ const microCache = LRU({ // eslint-disable-line | ||
44 | maxAge: 2000 | 44 | maxAge: 2000 |
45 | }); | 45 | }); |
46 | 46 | ||
47 | -const isCacheable = (req) => { | ||
48 | - console.log(req.route.path.toString()) | ||
49 | - return false; | ||
50 | -}; | ||
51 | 47 | ||
52 | const getContext = (req) => { | 48 | const getContext = (req) => { |
53 | return { | 49 | return { |
-
Please register or login to post a comment