From ff9644e76e43e06ef17fa7a79684a3ad89dcc78a Mon Sep 17 00:00:00 2001 From: basileus Date: Sun, 19 Nov 2023 15:59:31 +0200 Subject: [PATCH 1/2] feat(AWS_2=3): added product endpoint --- package.json | 4 ++-- src/constants/apiPaths.ts | 2 +- src/queries/products.ts | 10 ++++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) 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/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; }, From 69ffe8199d2c64ffb53364107294b3d73f4548c5 Mon Sep 17 00:00:00 2001 From: basileus Date: Sun, 19 Nov 2023 16:07:36 +0200 Subject: [PATCH 2/2] feat(AWS_2=3): shop name --- src/components/MainLayout/components/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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