Skip to content

Commit

Permalink
Update redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdoc committed Dec 13, 2023
1 parent 5ea8087 commit ca78a35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/_data/podcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ if (!process.env.API_BASE) {
return false;
}

const base = `https://wp.test/wp-json/wp/v2/podcast?per_page=50`;
// const base = `${process.env.API_BASE}podcast?per_page=50`;
const base = `${process.env.API_BASE}podcast?per_page=50`;
let thisPage = 1;
let totalPages = 1;

Expand Down Expand Up @@ -51,16 +50,9 @@ async function fetchPodcastEpisodes() {
headers.set('Authorization', `Basic ${auth}`)
}

// TODO REMOVE
const https = require('https');
const httpsAgent = new https.Agent({
rejectUnauthorized: false,
});

return fetch(url, {
method: 'GET',
headers,
agent: httpsAgent
headers
})
.then((res) => {
return {
Expand Down
2 changes: 2 additions & 0 deletions src/redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ permalink: _redirects
/events/globe-focus/* /bible-study/
/events/sunday-service/* /sundays/
/people/mike-sohn /people/mike-myung-sohn/
/preaching/globe-talks /podcast/talks
/resources/globe-talks-fasting/ /podcast/talks/fasting

0 comments on commit ca78a35

Please sign in to comment.