diff --git a/package.json b/package.json index 0c989768a..9b34154c6 100755 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "private": true, "scripts": { "start": "vite", - "deploy": "sdk deploy", - "destroy": "sdk destroy", + "deploy": "cdk deploy", + "destroy": "cdk destroy", "bootstrap": "cdk bootstrap --profile=default", "build": "tsc && vite build", "preview": "npm run build && vite preview", diff --git a/src/components/MainLayout/components/Header.tsx b/src/components/MainLayout/components/Header.tsx index 33c4bc666..8062f151b 100755 --- a/src/components/MainLayout/components/Header.tsx +++ b/src/components/MainLayout/components/Header.tsx @@ -35,7 +35,7 @@ export default function Header() { underline="none" to="/" > - USELESS THINGS STORE + THE VIRTUES STORE diff --git a/src/constants/apiPaths.ts b/src/constants/apiPaths.ts index 6846a7534..475f68b55 100755 --- a/src/constants/apiPaths.ts +++ b/src/constants/apiPaths.ts @@ -2,7 +2,7 @@ const API_PATHS = { product: "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", + bff: "https://y4gqw6g57a.execute-api.us-east-1.amazonaws.com/prod", cart: "https://.execute-api.eu-west-1.amazonaws.com/dev", }; diff --git a/src/queries/products.ts b/src/queries/products.ts index 090a803f3..c8a5fa1c4 100644 --- a/src/queries/products.ts +++ b/src/queries/products.ts @@ -9,7 +9,10 @@ export function useAvailableProducts() { "available-products", async () => { const res = await axios.get( - `${API_PATHS.bff}/product/available` + `${API_PATHS.bff}/products`, + { + withCredentials: false, + } ); return res.data; } @@ -29,7 +32,10 @@ export function useAvailableProduct(id?: string) { ["product", { id }], async () => { const res = await axios.get( - `${API_PATHS.bff}/product/${id}` + `${API_PATHS.bff}/products/${id}`, + { + withCredentials: false, + } ); return res.data; },