diff --git a/.gitignore b/.gitignore index 0eac30726..0cdefa2d4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ dist-ssr *.njsproj *.sln *.sw? +.venv +build +cdk.out \ No newline at end of file diff --git a/src/constants/apiPaths.ts b/src/constants/apiPaths.ts index 6846a7534..61f7c8af5 100755 --- a/src/constants/apiPaths.ts +++ b/src/constants/apiPaths.ts @@ -1,5 +1,5 @@ const API_PATHS = { - product: "https://.execute-api.eu-west-1.amazonaws.com/dev", + product: "https://6t7fhbiyr6.execute-api.us-east-2.amazonaws.com/prod/", //"https://.execute-api.eu-west-1.amazonaws.com/dev", order: "https://.execute-api.eu-west-1.amazonaws.com/dev", import: "https://.execute-api.eu-west-1.amazonaws.com/dev", bff: "https://.execute-api.eu-west-1.amazonaws.com/dev", diff --git a/src/queries/products.ts b/src/queries/products.ts index 090a803f3..ee9e67387 100644 --- a/src/queries/products.ts +++ b/src/queries/products.ts @@ -9,7 +9,7 @@ export function useAvailableProducts() { "available-products", async () => { const res = await axios.get( - `${API_PATHS.bff}/product/available` + `${API_PATHS.product}/products` ); return res.data; } @@ -29,7 +29,7 @@ export function useAvailableProduct(id?: string) { ["product", { id }], async () => { const res = await axios.get( - `${API_PATHS.bff}/product/${id}` + `${API_PATHS.product}/products/${id}` ); return res.data; },