Skip to content

Commit 6da096e

Browse files
committed
Update dependencies and enhance user data handling
- Modified next.config.js to include additional packages for transpilation and improved module resolution. - Updated package.json and package-lock.json to reflect changes in dependency versions, including React and Next.js. - Enhanced optimistic updates in user data handling to ensure data integrity and prevent unnecessary updates. - Improved error handling in user update mutations to ensure rollback only occurs when an address is provided. - Refactored various components to use React types for better type safety and clarity. - Removed the SECURITY_VULNERABILITIES_ANALYSIS.md file as it is no longer needed.
1 parent ba2cbd6 commit 6da096e

File tree

17 files changed

+619
-549
lines changed

17 files changed

+619
-549
lines changed

SECURITY_VULNERABILITIES_ANALYSIS.md

Lines changed: 0 additions & 206 deletions
This file was deleted.

next.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const config = {
1919
locales: ["en"],
2020
defaultLocale: "en",
2121
},
22-
transpilePackages: ["geist"],
22+
transpilePackages: ["geist", "@meshsdk/react"],
2323
typescript: {
2424
// Warning: This allows production builds to successfully complete even if
2525
// your project has type errors.
@@ -66,11 +66,23 @@ const config = {
6666
sideEffects: false,
6767
};
6868

69+
// Handle CommonJS modules that don't support named exports
70+
config.resolve = {
71+
...config.resolve,
72+
extensionAlias: {
73+
".js": [".js", ".ts", ".tsx"],
74+
},
75+
};
76+
6977
return config;
7078
},
79+
80+
// External packages for server components to avoid bundling issues
81+
serverExternalPackages: ["@fabianbormann/cardano-peer-connect"],
7182
};
7283

7384
// Bundle analyzer - only enable when ANALYZE env var is set
85+
/** @type {(config: import("next").NextConfig) => import("next").NextConfig} */
7486
const withBundleAnalyzer = process.env.ANALYZE === 'true'
7587
? require('@next/bundle-analyzer')({
7688
enabled: true,

0 commit comments

Comments
 (0)