create-react-app-ssr
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -35,3 +35,4 @@ 'use strict'; | ||
settings.ssrBlacklist.forEach(function (path) { | ||
var rules = Array.isArray(settngs.ssrBlacklist) ? settings.ssrBlacklist : settings.ssrBlacklist.split(','); | ||
rules.forEach(function (path) { | ||
return router.get(path, _serveAppStatic(settings)); | ||
@@ -38,0 +39,0 @@ }); |
{ | ||
"name": "create-react-app-ssr", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Server Side Rendering for Create React App (with redux, router, code splitting, ...)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,3 +27,7 @@ const express = require('express') | ||
const { serveAppStatic } = require('./middlewares/serve-app-static') | ||
settings.ssrBlacklist.forEach(path => router.get(path, serveAppStatic(settings))) | ||
const rules = (Array.isArray(settngs.ssrBlacklist) | ||
? settings.ssrBlacklist | ||
: settings.ssrBlacklist.split(',') | ||
) | ||
rules.forEach(path => router.get(path, serveAppStatic(settings))) | ||
} | ||
@@ -30,0 +34,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94829
736