From 69dddbaeab28289d2e505b42579ffdedafa745dc Mon Sep 17 00:00:00 2001 From: martintomas Date: Tue, 5 Dec 2023 13:15:30 +0100 Subject: [PATCH] refactoring: Moving app to subdirectory --- infrastructure/base/main.tf | 8 ++++---- infrastructure/base/modules/app/main.tf | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/infrastructure/base/main.tf b/infrastructure/base/main.tf index adeb2a1..ae08922 100644 --- a/infrastructure/base/main.tf +++ b/infrastructure/base/main.tf @@ -40,8 +40,8 @@ locals { ADMIN_JWT_SECRET = random_password.admin_jwt_secret.result TRANSFER_TOKEN_SALT = random_password.transfer_token_salt.result JWT_SECRET = random_password.jwt_secret.result - CMS_URL = "${module.staging.app_url}/cms/" - STRAPI_ADMIN_API_BASE_URL = "${module.staging.app_url}/cms/api" + CMS_URL = "${module.staging.app_url}/impact-sphere/cms" + STRAPI_ADMIN_API_BASE_URL = "${module.staging.app_url}/impact-sphere/cms/api" STRAPI_ADMIN_MAPBOX_ACCESS_TOKEN = var.mapbox_api_token STRAPI_MEDIA_LIBRARY_PROVIDER = "digitalocean" @@ -64,9 +64,9 @@ locals { } staging_client_env = { - NEXT_PUBLIC_URL = module.staging.app_url + NEXT_PUBLIC_URL = "${module.staging.app_url}/impact-sphere" NEXT_PUBLIC_ENVIRONMENT = "production" - NEXT_PUBLIC_API_URL = "${module.staging.app_url}/cms/api" + NEXT_PUBLIC_API_URL = "${module.staging.app_url}/impact-sphere/cms/api" NEXT_PUBLIC_GA_TRACKING_ID = var.ga_tracking_id NEXT_PUBLIC_MAPBOX_API_TOKEN = var.mapbox_api_token LOG_LEVEL = "info" diff --git a/infrastructure/base/modules/app/main.tf b/infrastructure/base/modules/app/main.tf index 522ac70..98ef6ec 100644 --- a/infrastructure/base/modules/app/main.tf +++ b/infrastructure/base/modules/app/main.tf @@ -43,7 +43,7 @@ resource "digitalocean_app" "app" { } routes { - path = "/" + path = "/impact-sphere" preserve_path_prefix = false } } @@ -68,7 +68,7 @@ resource "digitalocean_app" "app" { } routes { - path = "/cms" + path = "/impact-sphere/cms" preserve_path_prefix = false } }