49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
headers: [
|
|
{
|
|
key: 'Content-Security-Policy',
|
|
value: "default-src 'self'; media-src 'self' blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https:; font-src 'self' data:; frame-src 'self' https:;"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
images: {
|
|
domains: ["turkmentv.gov.tm", "smstv.gov.tm", "turkmenistaninfo.gov.tm"],
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "turkmentv.gov.tm",
|
|
port: "",
|
|
// pathname: '/account123/**',
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "sms.turkmentv.gov.tm",
|
|
port: "",
|
|
// pathname: '/account123/**',
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "smstv.gov.tm",
|
|
port: "",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "turkmenistaninfo.gov.tm",
|
|
port: "",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|