35 lines
781 B
JavaScript
35 lines
781 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
images: {
|
|
remotePatterns: [
|
|
{ protocol: 'http', hostname: 'localhost' },
|
|
{ protocol: 'https', hostname: 'lad1908.org' },
|
|
{ protocol: 'https', hostname: 'db.lad1908.org' },
|
|
],
|
|
formats: ['image/avif', 'image/webp'],
|
|
},
|
|
headers: async () => {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{
|
|
key: 'X-Content-Type-Options',
|
|
value: 'nosniff',
|
|
},
|
|
{
|
|
key: 'X-Frame-Options',
|
|
value: 'SAMEORIGIN',
|
|
},
|
|
{
|
|
key: 'X-XSS-Protection',
|
|
value: '1; mode=block',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|