I recently started working on a project in Next.js and have been creating components. I wanted to add some CSS styling to my components by linking an external CSS file using
<link rel="stylesheet" href="app.css" />
.
However, when I tried to implement this code, the page could not be found. Can anyone help me troubleshoot this issue?
Here is a snippet of my code:
const Header = () => {
return (
<Fragment>
<Head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>Site | Title</title>
<link href="/statics/app.css" rel="stylesheet" />
</Head>
</Fragment>
);
}
If anyone has any suggestions or solutions, please let me know. Thank you and best regards.