Currently in the process of transitioning my personal project from React.JS to Next.JS, I've noticed that CSS files are being processed twice with different names. As someone relatively new to web development, I'm unsure why this is happening and if it's related to other issues I'm facing.
Below is a breakdown of my project's architecture: Project architecture
Additionally, here is what I see in the developer tool: Developer tool screenshot
It's worth mentioning that both the Header and Footer components are imported into the root layout, resulting in them appearing on every page. The header's CSS is modularized, while the footer's CSS is not due to an experiment I conducted to troubleshoot the issue – unfortunately, it did not yield any changes.
In short: I attempted to add CSS styles to the footer and header components, but they now appear duplicated and do not retain their original appearance after migrating from ReactJS to NextJS.