turkmen-tv-front/next.config.js

49 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-08-19 12:44:56 +00:00
/** @type {import('next').NextConfig} */
const nextConfig = {
2025-01-05 19:17:39 +00:00
reactStrictMode: false,
2024-08-19 12:44:56 +00:00
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:;"
}
]
}
]
},
2024-08-19 12:44:56 +00:00
images: {
2025-01-05 19:17:39 +00:00
domains: ["turkmentv.gov.tm", "smstv.gov.tm", "turkmenistaninfo.gov.tm"],
2024-08-19 12:44:56 +00:00
remotePatterns: [
{
2025-01-05 19:17:39 +00:00
protocol: "https",
hostname: "turkmentv.gov.tm",
port: "",
2024-08-19 12:44:56 +00:00
// pathname: '/account123/**',
},
{
2025-01-05 19:17:39 +00:00
protocol: "https",
hostname: "sms.turkmentv.gov.tm",
port: "",
// pathname: '/account123/**',
},
2024-08-19 12:44:56 +00:00
{
2025-01-05 19:17:39 +00:00
protocol: "https",
hostname: "smstv.gov.tm",
port: "",
2024-08-19 12:44:56 +00:00
},
{
2025-01-05 19:17:39 +00:00
protocol: "https",
hostname: "turkmenistaninfo.gov.tm",
port: "",
2024-08-19 12:44:56 +00:00
},
],
},
};
module.exports = nextConfig;