- Remove posthog-js and posthog-node dependencies - Delete PostHogProvider component and lib/posthog.ts - Remove PostHog configuration from environment files - Remove PostHog rewrites from next.config.mjs - Update all npm subdependencies to latest minor versions - Update @types/react and @types/react-dom overrides to 19.2.9 and 19.2.3
59 lines
1.2 KiB
JavaScript
59 lines
1.2 KiB
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
qualities: [50, 75, 100],
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "**",
|
|
}
|
|
],
|
|
minimumCacheTTL: 60,
|
|
// unoptimized: true,
|
|
},
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
source: '/sw.js',
|
|
headers: [
|
|
{
|
|
key: 'Content-Type',
|
|
value: 'application/javascript; charset=utf-8',
|
|
},
|
|
{
|
|
key: 'Cache-Control',
|
|
value: 'no-cache, no-store, must-revalidate',
|
|
},
|
|
{
|
|
key: 'Content-Security-Policy',
|
|
value: "default-src 'self' *; connect-src 'self' *; script-src 'self'",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|