diff --git a/services/frontend/Dockerfile b/services/frontend/Dockerfile index 73a7eeae..1cd81abb 100644 --- a/services/frontend/Dockerfile +++ b/services/frontend/Dockerfile @@ -14,11 +14,11 @@ ENV NEXT_TELEMETRY_DISABLED=1 \ NEXT_PUBLIC_ADS_ROUTE=/services/ads \ NEXT_PUBLIC_DISCOUNTS_ROUTE=/services/discounts \ NEXT_PUBLIC_DBM_ROUTE=/services/dbm \ - NEXT_PUBLIC_FRONTEND_API_ROUTE=http://nginx:80 \ - NEXT_PUBLIC_SPREE_API_HOST=http://nginx/services/backend \ + NEXT_PUBLIC_FRONTEND_API_ROUTE=http://service-proxy:80 \ + NEXT_PUBLIC_SPREE_API_HOST=http://service-proxy/services/backend \ NEXT_PUBLIC_SPREE_CLIENT_HOST=/services/backend \ NEXT_PUBLIC_SPREE_IMAGE_HOST=/services/backend \ - NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=nginx \ + NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=service-proxy \ DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL} \ DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA} diff --git a/services/frontend/lib/api/pages.ts b/services/frontend/lib/api/pages.ts index 42ed9837..1110b9c0 100644 --- a/services/frontend/lib/api/pages.ts +++ b/services/frontend/lib/api/pages.ts @@ -3,7 +3,7 @@ import { Page } from '@customTypes/page' const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST ? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2` - : 'http://nginx/services/backend/api/v2' + : 'http://service-proxy/services/backend/api/v2' export const getPages = async (options: any = {}): Promise => { try { diff --git a/services/frontend/lib/api/products.ts b/services/frontend/lib/api/products.ts index 30a19ed9..6bbf717c 100644 --- a/services/frontend/lib/api/products.ts +++ b/services/frontend/lib/api/products.ts @@ -3,7 +3,7 @@ import { Product } from '@customTypes/product' const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST ? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2` - : 'http://nginx/services/backend/api/v2' + : 'http://service-proxy/services/backend/api/v2' // GET CONTENT API export const getProducts = async ( diff --git a/services/frontend/lib/api/taxons.ts b/services/frontend/lib/api/taxons.ts index c687008b..8002257d 100644 --- a/services/frontend/lib/api/taxons.ts +++ b/services/frontend/lib/api/taxons.ts @@ -3,7 +3,7 @@ import type { Taxon } from '@customTypes/taxons' const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST ? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2` - : 'http://nginx/services/backend/api/v2' + : 'http://service-proxy/services/backend/api/v2' // get taxons export const getTaxons = async (options: any = {}): Promise => {