Skip to content
Merged
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
205 changes: 0 additions & 205 deletions SECURITY_VULNERABILITIES_ANALYSIS.md

This file was deleted.

33 changes: 31 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config = {
locales: ["en"],
defaultLocale: "en",
},
transpilePackages: ["geist"],
transpilePackages: ["geist", "@meshsdk/react"],
typescript: {
// Warning: This allows production builds to successfully complete even if
// your project has type errors.
Expand All @@ -44,6 +44,8 @@ const config = {
hostname: "gateway.pinata.cloud",
},
],
// Allow unoptimized images for local proxy API routes
unoptimized: false,
},
// Turbopack configuration (Next.js 16+)
// Empty config silences the warning about webpack/turbopack conflict
Expand All @@ -56,8 +58,35 @@ const config = {
asyncWebAssembly: true,
layers: true,
};

// Optimize tree-shaking by ensuring proper module resolution
config.optimization = {
...config.optimization,
usedExports: true,
sideEffects: false,
};

// Handle CommonJS modules that don't support named exports
config.resolve = {
...config.resolve,
extensionAlias: {
".js": [".js", ".ts", ".tsx"],
},
};

return config;
},

// External packages for server components to avoid bundling issues
serverExternalPackages: ["@fabianbormann/cardano-peer-connect"],
};

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

export default withBundleAnalyzer(config);
Loading
Loading