I'm experiencing non-determinism when deploying my Next.JS site w.r.t to CSS loading.
Locally, it looks as expected, but upon deploying, the CSS rules are missing completely. I see the element has the class attached to it, but the associating styling rules are non-existing, almost like they got dropped during build-time.
https://personal-blog-mocha.vercel.app/
https://github.com/Schachte/personal-blog
Local
Remote
Next.Config.JS
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
});
module.exports = withMDX({
pageExtensions: ["js", "jsx", "md", "mdx"],
});
Component
// CSS
import Home from "../../styles/main/Home.module.css";
const Headline = () => {
return (
<div id={Home["main-banner"]}>
<span>👋 I’m ___, a technologist and educator.</span>
</div>
);
};
export default Headline;
CSS
#main-banner {
width: 100%;
border: 1px solid white;
color: white;
border-radius: 3px;
align-self: center;
margin-top: 40px;
height: 40px;
align-items: center;
padding-left: 30px;
padding-right: 30px;
text-align: center;
}


