From: Ardis Lu Date: Wed, 22 Sep 2021 02:44:48 +0000 (-0700) Subject: Revert proxy URL to Google domain X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8b94ff0513966854ac3d46a7ceed3d33dc4b4ef3;p=ardislu.dev Revert proxy URL to Google domain Putting CDN on top of it via CNAME is not supported --- diff --git a/404.html b/404.html index 19854bf..61e244b 100644 --- a/404.html +++ b/404.html @@ -51,7 +51,7 @@ }; (async () => { - const proxyUrl = 'https://cms.ardislu.dev/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec'; + const proxyUrl = 'https://script.google.com/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 5150b00..2648ee2 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://cms.ardislu.dev/macros/s/AKfycbzMHxwypbwsccBq6RH8LDCAOpM02C4gbkljbcKHKFsoQTRE-f4XTIyswiaO0vshs-Kr/exec'; + 'https://script.google.com/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}`;