Revert "Redirect home page traffic to unpkg.com"
This reverts commit 855988865d
.
This commit is contained in:
parent
469102ab52
commit
3476c075be
|
@ -20,11 +20,6 @@ const fetchStats = (callback) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const sendHomePage = (req, res, next) => {
|
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 chunks = [ 'vendor', 'home' ]
|
||||||
const props = {
|
const props = {
|
||||||
styles: req.bundle.getStyleAssets(chunks),
|
styles: req.bundle.getStyleAssets(chunks),
|
||||||
|
|
Loading…
Reference in New Issue