Skip to content
Open
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainLayout/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Header() {
underline="none"
to="/"
>
USELESS THINGS STORE
THE VIRTUES STORE
</Link>
</div>
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion src/constants/apiPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};

Expand Down
10 changes: 8 additions & 2 deletions src/queries/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export function useAvailableProducts() {
"available-products",
async () => {
const res = await axios.get<AvailableProduct[]>(
`${API_PATHS.bff}/product/available`
`${API_PATHS.bff}/products`,
{
withCredentials: false,
}
);
return res.data;
}
Expand All @@ -29,7 +32,10 @@ export function useAvailableProduct(id?: string) {
["product", { id }],
async () => {
const res = await axios.get<AvailableProduct>(
`${API_PATHS.bff}/product/${id}`
`${API_PATHS.bff}/products/${id}`,
{
withCredentials: false,
}
);
return res.data;
},
Expand Down