From 7ab3f01c5331b19ab4a006ca7ebc922874f7955f Mon Sep 17 00:00:00 2001 From: Artyom Yakovlev Date: Fri, 30 May 2025 18:53:28 +0300 Subject: [PATCH 1/3] Fix: type error: 'transactionInitializeResult.data' is possibly 'undefined' --- src/pages/app/checkout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/app/checkout.tsx b/src/pages/app/checkout.tsx index 54048b6..22420cd 100644 --- a/src/pages/app/checkout.tsx +++ b/src/pages/app/checkout.tsx @@ -224,7 +224,7 @@ const CheckoutPage = () => { navigateToTransaction( - transactionInitializeResult.data.transactionInitialize?.transaction?.id + transactionInitializeResult.data?.transactionInitialize?.transaction?.id ) } cursor="pointer" From e4f890b41be28b1a6620d6a0f8fac1dd729f99f7 Mon Sep 17 00:00:00 2001 From: Artyom Yakovlev Date: Fri, 30 May 2025 19:12:00 +0300 Subject: [PATCH 2/3] Add graphql-codegen for Vercel build --- pnpm-lock.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c84915c..a6b70b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7883,7 +7883,7 @@ snapshots: eslint: 8.31.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.31.0) eslint-plugin-react: 7.33.2(eslint@8.31.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.31.0) @@ -7911,7 +7911,7 @@ snapshots: enhanced-resolve: 5.15.0 eslint: 8.31.0 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0) fast-glob: 3.3.1 get-tsconfig: 4.7.2 is-core-module: 2.13.0 @@ -7933,7 +7933,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0): + eslint-plugin-import@2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0): dependencies: array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 From 35814316200e6d69f05607650dd0afcf16b5ddc6 Mon Sep 17 00:00:00 2001 From: Artyom Yakovlev Date: Fri, 30 May 2025 19:16:18 +0300 Subject: [PATCH 3/3] Add vercel conf. --- pnpm-lock.yaml | 6 +++--- vercel.json | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 vercel.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6b70b6..c84915c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7883,7 +7883,7 @@ snapshots: eslint: 8.31.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.31.0) eslint-plugin-react: 7.33.2(eslint@8.31.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.31.0) @@ -7911,7 +7911,7 @@ snapshots: enhanced-resolve: 5.15.0 eslint: 8.31.0 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0) fast-glob: 3.3.1 get-tsconfig: 4.7.2 is-core-module: 2.13.0 @@ -7933,7 +7933,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.31.0): + eslint-plugin-import@2.28.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.31.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.28.1(eslint@8.31.0))(eslint@8.31.0))(eslint@8.31.0): dependencies: array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..96ff4ed --- /dev/null +++ b/vercel.json @@ -0,0 +1,7 @@ +{ + "functions": { + "src/pages/api/webhooks/saleor/**/*": { + "memory": 256 + } + } +} \ No newline at end of file