Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions services/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion services/frontend/lib/api/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Page[] | any> => {
try {
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/lib/api/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/lib/api/taxons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Taxon[] | any> => {
Expand Down