← back to Designer Wallcoverings
appointments: target api.designerwallcoverings.com (Option A edge routing) for API base, public base + OAuth redirect
52917463bca539b64774e47ccbbc5247f6dc7240 · 2026-06-29 10:03:55 -0700 · Steve Abrams
Files touched
M shopify/quote-api/appointments/oauth.jsM shopify/quote-api/appointments/router.jsM shopify/sections/appointment-booking.liquid
Diff
commit 52917463bca539b64774e47ccbbc5247f6dc7240
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Jun 29 10:03:55 2026 -0700
appointments: target api.designerwallcoverings.com (Option A edge routing) for API base, public base + OAuth redirect
---
shopify/quote-api/appointments/oauth.js | 2 +-
shopify/quote-api/appointments/router.js | 2 +-
shopify/sections/appointment-booking.liquid | 5 ++---
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/shopify/quote-api/appointments/oauth.js b/shopify/quote-api/appointments/oauth.js
index ac8e0644..2b19f228 100644
--- a/shopify/quote-api/appointments/oauth.js
+++ b/shopify/quote-api/appointments/oauth.js
@@ -31,7 +31,7 @@ function getOAuthConfig() {
const clientSecret = process.env.GOOGLE_OAUTH_CLIENT_SECRET || process.env.GOOGLE_CLIENT_SECRET || '';
const redirectUri =
process.env.GOOGLE_OAUTH_REDIRECT_URI ||
- 'https://www.designerwallcoverings.com/api/appointments/oauth/callback';
+ 'https://api.designerwallcoverings.com/api/appointments/oauth/callback';
return { clientId, clientSecret, redirectUri };
}
diff --git a/shopify/quote-api/appointments/router.js b/shopify/quote-api/appointments/router.js
index 4d8abf8b..064cea0b 100644
--- a/shopify/quote-api/appointments/router.js
+++ b/shopify/quote-api/appointments/router.js
@@ -27,7 +27,7 @@ const DEFAULT_OWNER = (process.env.APPT_OWNER_EMAIL || 'info@designerwallcoverin
const IN_PERSON_LOCATION =
process.env.DW_SHOWROOM_LOCATION ||
'Designer Wallcoverings Showroom · 15442 Ventura Blvd #102, Sherman Oaks, CA 91403';
-const PUBLIC_BASE = process.env.APPT_PUBLIC_BASE || 'https://www.designerwallcoverings.com';
+const PUBLIC_BASE = process.env.APPT_PUBLIC_BASE || 'https://api.designerwallcoverings.com';
const VALID_TYPES = new Set(['phone', 'in_person']);
const esc = (s) =>
diff --git a/shopify/sections/appointment-booking.liquid b/shopify/sections/appointment-booking.liquid
index 923d1ba9..cbf2c8cd 100644
--- a/shopify/sections/appointment-booking.liquid
+++ b/shopify/sections/appointment-booking.liquid
@@ -13,8 +13,7 @@
days_ahead how many days forward to offer
{%- endcomment -%}
-{%- comment -%} api_base blank = same-origin relative /api/appointments (matches /api/koroseal-quote proxy). {%- endcomment -%}
-{%- assign api_base = section.settings.api_base | strip -%}
+{%- assign api_base = section.settings.api_base | default: 'https://api.designerwallcoverings.com' | strip -%}
{%- assign owner_email = section.settings.owner_email | default: 'info@designerwallcoverings.com' | strip -%}
{%- assign days_ahead = section.settings.days_ahead | default: 21 -%}
@@ -286,7 +285,7 @@
"class": "section-appointment-booking",
"settings": [
{ "type": "header", "content": "Backend" },
- { "type": "text", "id": "api_base", "label": "Appointments API base URL (optional)", "info": "Leave blank for same-origin /api/appointments (matches the /api/koroseal-quote proxy). Only set an absolute origin if the API is on a different host." },
+ { "type": "text", "id": "api_base", "label": "Appointments API base URL", "default": "https://api.designerwallcoverings.com", "info": "Origin of the DW appointments service (Kamatera koroseal-quote-api behind api.designerwallcoverings.com). CORS is handled server-side." },
{ "type": "text", "id": "owner_email", "label": "Calendar owner email", "default": "info@designerwallcoverings.com" },
{ "type": "range", "id": "days_ahead", "min": 7, "max": 63, "step": 7, "unit": "d", "label": "Days bookable ahead", "default": 21 },
{ "type": "header", "content": "Copy" },
← 11042a14 appointments: deploy prep — runbook + nginx snippet (edge-ro
·
back to Designer Wallcoverings
·
Fix sku-inquiry + koroseal-quote 404s: point at api.designer 04f34147 →