From 224c86f0afc3e018d14b4a368d1d07753c6ca7e9 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 21 Sep 2021 19:28:20 -0700 Subject: [PATCH] Update proxy URL to use Cloudflare CDN for caching --- 404.html | 2 +- script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/404.html b/404.html index 3fae7d2..22a1b83 100644 --- a/404.html +++ b/404.html @@ -51,7 +51,7 @@ }; (async () => { - const proxyUrl = "https://script.google.com/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec"; + const proxyUrl = "https://cms.ardislu.dev/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec"; const documentId = window.location.pathname.split("/").pop(); const url = `${proxyUrl}?https://docs.googleapis.com/v1/documents/${documentId}`; diff --git a/script.js b/script.js index d0259d9..e4a0abd 100644 --- a/script.js +++ b/script.js @@ -53,7 +53,7 @@ const inject = (resp) => { /* Query Google Sheet for the card content */ (async () => { const proxyUrl = - "https://script.google.com/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec"; + "https://cms.ardislu.dev/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec"; const controllerId = "1pfGF8yBu3D0GPTezygLuzu3Cif8SkjhtG98nL-czlhc"; const range = "B3:E"; const url = `${proxyUrl}?https://sheets.googleapis.com/v4/spreadsheets/${controllerId}/values/${range}`; -- 2.47.3