- Added multiple test pages to debug chart rendering issues - Updated Next.js config to handle ES modules and transpile lightweight-charts - Attempting to resolve chart initialization problems
15 lines
289 B
TypeScript
15 lines
289 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ['lightweight-charts'],
|
|
webpack: (config) => {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
fs: false,
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|