Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK 3 #491

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
6 changes: 3 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ frameworkVersion: "3"
provider:
name: aws
runtime: nodejs14.x
region: eu-west-1
region: ap-northeast-1
# setup profile for AWS CLI.
# profile: node-aws
profile: admin

plugins:
- serverless-finch
Expand All @@ -19,7 +19,7 @@ plugins:

custom:
client:
bucketName: my-store-app
bucketName: sardorrasulov-shop-react-redux-cloudfront-v4
distributionFolder: dist
s3BucketName: ${self:custom.client.bucketName}

Expand Down
3 changes: 2 additions & 1 deletion src/constants/apiPaths.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const API_PATHS = {
product: "https://.execute-api.eu-west-1.amazonaws.com/dev",
product: "https://81trajfxvk.execute-api.ap-northeast-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",
cart: "https://.execute-api.eu-west-1.amazonaws.com/dev",
Expand Down
2 changes: 1 addition & 1 deletion src/queries/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function useAvailableProducts() {
"available-products",
async () => {
const res = await axios.get<AvailableProduct[]>(
`${API_PATHS.bff}/product/available`
`${API_PATHS.product}/products`
);
return res.data;
}
Expand Down