diff --git a/cmd/cart/main.go b/cmd/cart/main.go index 33ad4ff..fca039b 100644 --- a/cmd/cart/main.go +++ b/cmd/cart/main.go @@ -54,7 +54,7 @@ func getCountryFromHost(host string) string { if strings.Contains(strings.ToLower(host), "-se") { return "se" } - return "" + return "se" } type MutationContext struct { diff --git a/cmd/cart/product-fetcher.go b/cmd/cart/product-fetcher.go index 12a9904..d0c3e97 100644 --- a/cmd/cart/product-fetcher.go +++ b/cmd/cart/product-fetcher.go @@ -23,7 +23,7 @@ func getBaseUrl(country string) string { if country == "se" { return "http://s10n-se.s10n:8080" } - return "http://localhost:8082" + return "http://s10n-se.s10n:8080" } func FetchItem(ctx context.Context, sku string, country string) (*index.DataItem, error) {