Skip to content

Commit c86c72f

Browse files
authored
Merge pull request #89 from DataDog/arosenkranz/frontend-nginx-fix
renames nginx refs in frontend
2 parents bf9ded8 + aa64dee commit c86c72f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

services/frontend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ ENV NEXT_TELEMETRY_DISABLED=1 \
1414
NEXT_PUBLIC_ADS_ROUTE=/services/ads \
1515
NEXT_PUBLIC_DISCOUNTS_ROUTE=/services/discounts \
1616
NEXT_PUBLIC_DBM_ROUTE=/services/dbm \
17-
NEXT_PUBLIC_FRONTEND_API_ROUTE=http://nginx:80 \
18-
NEXT_PUBLIC_SPREE_API_HOST=http://nginx/services/backend \
17+
NEXT_PUBLIC_FRONTEND_API_ROUTE=http://service-proxy:80 \
18+
NEXT_PUBLIC_SPREE_API_HOST=http://service-proxy/services/backend \
1919
NEXT_PUBLIC_SPREE_CLIENT_HOST=/services/backend \
2020
NEXT_PUBLIC_SPREE_IMAGE_HOST=/services/backend \
21-
NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=nginx \
21+
NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=service-proxy \
2222
DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL} \
2323
DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
2424

services/frontend/lib/api/pages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Page } from '@customTypes/page'
33

44
const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST
55
? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2`
6-
: 'http://nginx/services/backend/api/v2'
6+
: 'http://service-proxy/services/backend/api/v2'
77

88
export const getPages = async (options: any = {}): Promise<Page[] | any> => {
99
try {

services/frontend/lib/api/products.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Product } from '@customTypes/product'
33

44
const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST
55
? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2`
6-
: 'http://nginx/services/backend/api/v2'
6+
: 'http://service-proxy/services/backend/api/v2'
77

88
// GET CONTENT API
99
export const getProducts = async (

services/frontend/lib/api/taxons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Taxon } from '@customTypes/taxons'
33

44
const SPREE_URL_SERVERSIDE = process.env.NEXT_PUBLIC_SPREE_API_HOST
55
? `${process.env.NEXT_PUBLIC_SPREE_API_HOST}/api/v2`
6-
: 'http://nginx/services/backend/api/v2'
6+
: 'http://service-proxy/services/backend/api/v2'
77

88
// get taxons
99
export const getTaxons = async (options: any = {}): Promise<Taxon[] | any> => {

0 commit comments

Comments
 (0)