From f29aa4eb2f4d7dc95c3b123c29e596902c3c558c Mon Sep 17 00:00:00 2001 From: Barry Dwyer Date: Tue, 9 Jun 2026 10:07:28 +0200 Subject: [PATCH] Make routes https by default --- v1-to-v2-data-migration/helpers/routes.ts | 36 +++++++++++++---------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/v1-to-v2-data-migration/helpers/routes.ts b/v1-to-v2-data-migration/helpers/routes.ts index d2783d7..21d941c 100644 --- a/v1-to-v2-data-migration/helpers/routes.ts +++ b/v1-to-v2-data-migration/helpers/routes.ts @@ -1,19 +1,25 @@ import { DOMAIN } from './vars.ts' -export const CONFIG = `http://${ - DOMAIN.includes('localhost') ? `${DOMAIN}:2021` : `config.${DOMAIN}` -}` -export const GATEWAY = `http://${ - DOMAIN.includes('localhost') ? `${DOMAIN}:7070` : `gateway.${DOMAIN}` -}` -export const COUNTRY_CONFIG = `http://${ - DOMAIN.includes('localhost') ? `${DOMAIN}:3040` : `countryconfig.${DOMAIN}` -}` +export const CONFIG = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:2021` + : `https://config.${DOMAIN}` -export const REGISTER_APP = `http://${ - DOMAIN.includes('localhost') ? `${DOMAIN}:3000` : `register.${DOMAIN}` -}` +export const GATEWAY = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:7070` + : `https://gateway.${DOMAIN}` -export const API = `http://${ - DOMAIN.includes('localhost') ? `${DOMAIN}:3000/api` : `${DOMAIN}/api` -}` +export const AUTH = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:4040` + : `https://auth.${DOMAIN}` + +export const COUNTRY_CONFIG = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:3040` + : `https://countryconfig.${DOMAIN}` + +export const REGISTER_APP = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:3000` + : `https://register.${DOMAIN}` + +export const API = DOMAIN.includes('localhost') + ? `http://${DOMAIN}:3000/api` + : `https://${DOMAIN}/api`