64 lines
1.7 KiB
JavaScript
64 lines
1.7 KiB
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{
|
|
key: 'X-Content-Type-Options',
|
|
value: 'nosniff',
|
|
},
|
|
{
|
|
key: 'X-Frame-Options',
|
|
value: 'DENY',
|
|
},
|
|
{
|
|
key: 'Referrer-Policy',
|
|
value: 'strict-origin-when-cross-origin',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'www.google.com',
|
|
port: '',
|
|
pathname: '/s2/favicons',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'api.producthunt.com',
|
|
port: '',
|
|
pathname: '/widgets/embed-image/v1/featured.svg',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'metwm7frkvew6tn1.public.blob.vercel-storage.com',
|
|
port: '',
|
|
pathname: "**"
|
|
},
|
|
// upload.wikimedia.org
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'upload.wikimedia.org',
|
|
port: '',
|
|
pathname: '**'
|
|
},
|
|
// media.theresanaiforthat.com
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'media.theresanaiforthat.com',
|
|
port: '',
|
|
pathname: '**'
|
|
},
|
|
]
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|