From 8b94ff0513966854ac3d46a7ceed3d33dc4b4ef3 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 21 Sep 2021 19:44:48 -0700 Subject: [PATCH] Revert proxy URL to Google domain Putting CDN on top of it via CNAME is not supported --- 404.html | 2 +- script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}`; -- 2.47.3