From 4a61db38fa6e16c9696a9444674178fa44e33aee Mon Sep 17 00:00:00 2001 From: raviramnani Date: Sat, 27 Jul 2024 16:49:29 +0530 Subject: [PATCH] upgrade Next.js codemod for next-image-to-legacy-image updated ipfsDomain to proxy.pylons.tech because of slow loading on ipfs.io --- buy-now/next.config.js | 2 +- buy-now/package.json | 11 +++++------ easel/lib/utils/constants.dart | 2 +- wallet/lib/utils/constants.dart | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/buy-now/next.config.js b/buy-now/next.config.js index 6bf5a46cf6..16e9ea3633 100644 --- a/buy-now/next.config.js +++ b/buy-now/next.config.js @@ -12,7 +12,7 @@ const nextConfig = { reactStrictMode: true, swcMinify: true, images: { - domains: ['ipfs.io'] + domains: ['proxy.pylons.tech'] }, publicRuntimeConfig: { // Will be available on both server and client diff --git a/buy-now/package.json b/buy-now/package.json index 0754259917..579a2a7fa6 100644 --- a/buy-now/package.json +++ b/buy-now/package.json @@ -17,12 +17,12 @@ "@mui/icons-material": "^5.10.3", "@mui/material": "^5.10.3", "@reduxjs/toolkit": "^1.8.5", - "axios": "^0.27.2", + "axios": "^1.7.2", "cross-env": "^7.0.3", "eslint-plugin-testing-library": "^5.7.2", "lodash": "^4.17.21", "moment": "^2.29.4", - "next": "~12.2.2", + "next": "^14.2.5", "next-i18next": "^12.0.1", "react": "^18.1.0", "react-dom": "^18.1.0", @@ -41,16 +41,15 @@ "@testing-library/user-event": "14.2.0", "@types/react": "18.0.9", "@types/styled-components": "^5.1.26", - "@typescript-eslint/eslint-plugin": "^5.36.1", - "eslint": "^8.23.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-next": "14.2.5", + "eslint-config-prettier": "^8.10.0", "eslint-config-standard-with-typescript": "^22.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.2.5", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-promise": "^6.0.1", "eslint-plugin-react": "^7.31.6", - "jest": "28.1.0", + "jest": "^29.7.0", "jest-environment-jsdom": "28.1.0", "prettier": "^2.7.1", "typescript": "^4.8.2" diff --git a/easel/lib/utils/constants.dart b/easel/lib/utils/constants.dart index d48f53618d..09e796af5d 100644 --- a/easel/lib/utils/constants.dart +++ b/easel/lib/utils/constants.dart @@ -82,7 +82,7 @@ class SVGUtils { const String kLoadingGif = 'assets/images/gifs/loading.gif'; /// ```URL constants -const ipfsDomain = 'https://ipfs.io/ipfs'; +const ipfsDomain = 'https://proxy.pylons.tech/ipfs'; const proxyIpfsDomain = 'https://proxy.pylons.tech/ipfs'; const kPlayStoreUrl = 'https://play.google.com/store/apps/details?id=tech.pylons.wallet'; const kWalletIOSId = 'xyz.pylons.wallet'; diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index d143ff4159..25478605f1 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -421,7 +421,7 @@ const String kNotificationsIds = "notificationIDs"; const String kZeroDouble = "0.0"; const String kZeroInt = "0"; -const ipfsDomain = 'https://ipfs.io/ipfs'; +const ipfsDomain = 'https://proxy.pylons.tech/ipfs'; const proxyIpfsDomain = 'https://proxy.pylons.tech/ipfs'; const hintTextEmail = 'x@pylons.tech';