I'm wondering how to render the CSS style in the server as well? I'm on production mode!
_app.js
import {useEffect} from "react";
import Head from "next/head";
import Script from "next/script";
import '../style/global.css'
function MyApp({ Component, pageProps }) {
return (<>
<Head>
{/*<link type="text/css" rel="stylesheet preload prefetch" href={'../style/global.css'} />*/} //Not Working
<title>MyTitle</title>
<main id={'container'} className={'containerApp'}>
<Component {...pageProps} />
</main>
</>)
}
export default MyApp
When I put external CSS link it works and I can see the server loaded the CSS style
_app.js
<link type="text/css" rel="stylesheet preload prefetch" href={'https://google.com/style/global.css'} />