I try to build a web application using nextjs 14,
after following some documentation I still cannot figure out how to do it properly,
this is my next.config.js
const nextConfig = {
output: 'export',
trailingSlash: true,
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'github.com',
pathname: '**',
},
],
},
};
I have problem loading the css and js that required in the web, it come in the folder named _next
but when called it say 404.
how to resolve the 404 for the required file?
thank you.