Serve images first-party and remove necloud domain refs
This commit is contained in:
+4
-4
@@ -11,14 +11,14 @@
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Verse by Verse with Nate" />
|
||||
<meta property="og:description" content="A verse-by-verse Scripture podcast exploring God's Word with depth, clarity, and practical application." />
|
||||
<meta property="og:image" content="https://necloud.us/images/banner.png" />
|
||||
<meta property="og:image" content="https://versebyversewithnate.us/images/banner.png" />
|
||||
<meta property="og:image:type" content="image/png" />
|
||||
<meta property="og:image:secure_url" content="https://necloud.us/images/banner.png" />
|
||||
<meta property="og:image:secure_url" content="https://versebyversewithnate.us/images/banner.png" />
|
||||
<meta property="og:image:alt" content="Verse by Verse with Nate podcast banner" />
|
||||
<meta property="og:locale" content="en_US" />
|
||||
<meta property="og:url" content="https://necloud.us" />
|
||||
<meta property="og:url" content="https://versebyversewithnate.us" />
|
||||
<meta property="og:site_name" content="Verse by Verse with Nate" />
|
||||
<link rel="canonical" href="https://necloud.us" />
|
||||
<link rel="canonical" href="https://versebyversewithnate.us" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet" />
|
||||
|
||||
@@ -34,8 +34,8 @@ const CHATBOT_FILE = path.join(DATA_DIR, 'chatbot-content.json')
|
||||
const BACKUP_DIR = path.join(DATA_DIR, 'backups')
|
||||
const DIST_DIR = path.join(__dirname, 'dist')
|
||||
const INDEX_FILE = path.join(DIST_DIR, 'index.html')
|
||||
const PODCAST_ART_DIST_FILE = path.join(DIST_DIR, 'images', 'podcast-art.jpeg')
|
||||
const PODCAST_ART_PUBLIC_FILE = path.join(__dirname, 'public', 'images', 'podcast-art.jpeg')
|
||||
const DIST_IMAGES_DIR = path.join(DIST_DIR, 'images')
|
||||
const PUBLIC_IMAGES_DIR = path.join(__dirname, 'public', 'images')
|
||||
const TITUS_STUDY_FILE = process.env.TITUS_STUDY_FILE
|
||||
? path.resolve(__dirname, process.env.TITUS_STUDY_FILE)
|
||||
: path.join(__dirname, 'A_Study_of_Titus.pdf')
|
||||
@@ -1482,17 +1482,8 @@ app.get('/amazon', (_req, res) => {
|
||||
res.redirect(301, 'https://music.amazon.com/podcasts/202322bf-db86-4e7d-9a6b-4db7cbccbccf/verse-by-verse-with-nate')
|
||||
})
|
||||
|
||||
app.get('/images/podcast-art.jpeg', (_req, res) => {
|
||||
res.sendFile(PODCAST_ART_DIST_FILE, distErr => {
|
||||
if (!distErr) return
|
||||
|
||||
res.sendFile(PODCAST_ART_PUBLIC_FILE, publicErr => {
|
||||
if (publicErr) {
|
||||
res.redirect(301, 'https://necloud.us/images/podcast-art.jpeg')
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
app.use('/images', express.static(DIST_IMAGES_DIR))
|
||||
app.use('/images', express.static(PUBLIC_IMAGES_DIR))
|
||||
|
||||
app.use(express.static(DIST_DIR))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user