Revert "Redirect home page traffic to unpkg.com"

This reverts commit 855988865d.
This commit is contained in:
Michael Jackson 2016-09-12 20:04:25 -07:00
parent 469102ab52
commit 3476c075be
1 changed files with 0 additions and 5 deletions

View File

@ -20,11 +20,6 @@ const fetchStats = (callback) => {
}
export const sendHomePage = (req, res, next) => {
if (req.hostname === 'npmcdn.com') {
res.redirect(301, 'https://unpkg.com' + req.originalUrl)
return
}
const chunks = [ 'vendor', 'home' ]
const props = {
styles: req.bundle.getStyleAssets(chunks),