From 57b0b22e1724957783c81f8dc66166e2eaf34d05 Mon Sep 17 00:00:00 2001 From: Raymond Khalife Date: Mon, 23 Sep 2024 17:34:48 -0400 Subject: [PATCH] chore: add required files for custom domains on the marketing page --- canister_ids.json | 11 +++++++++++ frontend/src/frontend/static/.well-known/ic-domains | 4 ++-- .../static/.well-known/ii-alternative-origins | 4 ++-- landing-page/astro.config.ts | 2 ++ landing-page/public/.ic-assets.json | 6 ++++++ landing-page/public/.well-known/ic-domains | 2 ++ 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 canister_ids.json create mode 100644 landing-page/public/.ic-assets.json create mode 100644 landing-page/public/.well-known/ic-domains diff --git a/canister_ids.json b/canister_ids.json new file mode 100644 index 0000000..84276e7 --- /dev/null +++ b/canister_ids.json @@ -0,0 +1,11 @@ +{ + "backend": { + "ic": "wjwei-yaaaa-aaaam-aabva-cai" + }, + "frontend": { + "ic": "s5wza-ziaaa-aaaam-abxba-cai" + }, + "marketing": { + "ic": "wavpu-oiaaa-aaaam-aabuq-cai" + } +} diff --git a/frontend/src/frontend/static/.well-known/ic-domains b/frontend/src/frontend/static/.well-known/ic-domains index 918f736..6a1a74a 100644 --- a/frontend/src/frontend/static/.well-known/ic-domains +++ b/frontend/src/frontend/static/.well-known/ic-domains @@ -1,2 +1,2 @@ -test.docutrack.ai -test.docutrack.one +demoapp.docutrack.ai +demoapp.docutrack.one diff --git a/frontend/src/frontend/static/.well-known/ii-alternative-origins b/frontend/src/frontend/static/.well-known/ii-alternative-origins index 0f43fcd..68cb485 100644 --- a/frontend/src/frontend/static/.well-known/ii-alternative-origins +++ b/frontend/src/frontend/static/.well-known/ii-alternative-origins @@ -1,6 +1,6 @@ { "alternativeOrigins": [ - "https://test.docutrack.ai", - "https://test.docutrack.one" + "https://demoapp.docutrack.ai", + "https://demoapp.docutrack.one" ] } diff --git a/landing-page/astro.config.ts b/landing-page/astro.config.ts index ed41960..f73bb3d 100644 --- a/landing-page/astro.config.ts +++ b/landing-page/astro.config.ts @@ -4,6 +4,8 @@ import { host, readCanisterIds } from "../frontend/scripts/readCanisterIds"; const canisterIds = readCanisterIds({}); const hostUrl = new URL(host); +// TODO after the custom domains are registered, the PUBLIC_DAPP_URL +// will need to be be set to the custom domain if (hostUrl.port) { process.env.PUBLIC_DAPP_URL = `${hostUrl.protocol}//${canisterIds.FRONTEND_CANISTER_ID}.${hostUrl.hostname}:${hostUrl.port}`; } else { diff --git a/landing-page/public/.ic-assets.json b/landing-page/public/.ic-assets.json new file mode 100644 index 0000000..2d56ca7 --- /dev/null +++ b/landing-page/public/.ic-assets.json @@ -0,0 +1,6 @@ +[ + { + "match": ".well-known", + "ignore": false + } +] diff --git a/landing-page/public/.well-known/ic-domains b/landing-page/public/.well-known/ic-domains new file mode 100644 index 0000000..340400d --- /dev/null +++ b/landing-page/public/.well-known/ic-domains @@ -0,0 +1,2 @@ +docutrack.ai +docutrack.one