1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-02 20:52:33 +02:00

Added configuration for accessing remote instance of WordPress (issue #23).

This commit is contained in:
Chung Leong
2019-01-27 20:56:53 +01:00
parent d362ddef49
commit 09186c2341
14 changed files with 111 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ const HTML_TEMPLATE = `${__dirname}/client/index.html`;
async function generate(path, target) {
// retrieve cached JSON through Nginx
console.log(`Regenerating page: ${path}`);
let host = `http://${NGINX_HOST}`;
let host = NGINX_HOST;
// create a fetch() that remembers the URLs used
let sourceURLs = [];
let fetch = (url, options) => {