0aea2f47da
the error was due to a faulty logic. 'useRouter' was being used to detect pathname, which doesn't keep original url on 404 page. this commit fixes that. this commit also makes it easy to go to IMDb by adding a clear link on error page. closes https://github.com/zyachel/libremdb/issues/50
26 lines
473 B
JavaScript
26 lines
473 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/',
|
|
destination: '/find',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
domains: ['m.media-amazon.com'],
|
|
},
|
|
experimental: {
|
|
images: {
|
|
allowFutureImage: true,
|
|
},
|
|
isrMemoryCacheSize: 20 * 1024 * 1024,
|
|
},
|
|
poweredByHeader: false,
|
|
};
|
|
|
|
export default nextConfig;
|