Remove CDN usage

Cache Partitioning is now a thing in browsers.
This negates the advantage of a CDN.
This commit is contained in:
Wingy 2020-12-01 21:39:11 -05:00
parent a7b7a00b14
commit f3cfc6abe0
2 changed files with 3 additions and 13 deletions

View file

@ -12,7 +12,6 @@ module.exports = {
sessionMaxAge: Number(process.env.SESSION_MAX_AGE) || 1000 * 60 * 60 * 24 * 7,
siteTitle: process.env.SITE_TITLE || 'Christmas Community',
shortTitle: process.env.SHORT_TITLE || 'Christmas',
useCDN: yesNo.parse(process.env.USE_CDN || true),
wishlist: require('./wishlist'),
base: (process.env.ROOT_PATH || '/').endsWith('/') ? (process.env.ROOT_PATH || '/') : `${process.env.ROOT_PATH}/`,
trustProxy: process.env.TRUST_PROXY === 'true' ? true : process.env.TRUST_PROXY || 'loopback',

View file

@ -10,15 +10,6 @@ html(lang='en')
title #{config.siteTitle} - #{title}
else
title #{config.siteTitle}
if config.useCDN
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css')
link(
rel='stylesheet',
href='https://use.fontawesome.com/releases/v5.5.0/css/all.css',
crossorigin='anonymous'
)
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css')
else
link(rel='stylesheet', href=`${_CC.config.base}libraries/bulma.min.css`)
link(rel='stylesheet', href=`${_CC.config.base}libraries/fontawesome/css/all.css`)
link(rel='stylesheet', href=`${_CC.config.base}libraries/animate.min.css`)