1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-03 05:02:34 +02:00

Reworked routing so that WP permalinks arrangement is used (issue #13).

This commit is contained in:
Chung Leong
2019-01-26 19:59:33 +01:00
parent a2ed7d67d2
commit 7ee6acf316
16 changed files with 275 additions and 234 deletions

View File

@@ -10,6 +10,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}`;
// create a fetch() that remembers the URLs used
let sourceURLs = [];