From: Ardis Lu Date: Wed, 22 Sep 2021 02:28:20 +0000 (-0700) Subject: Update proxy URL to use Cloudflare CDN for caching X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=224c86f0afc3e018d14b4a368d1d07753c6ca7e9;p=ardislu.dev Update proxy URL to use Cloudflare CDN for caching --- 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}`;