michaelpeskov/next.config.mjs

38 lines
831 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
typedRoutes: true,
},
images: {
formats: ['image/avif', 'image/webp'],
dangerouslyAllowSVG: true,
contentDispositionType: 'attachment',
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{
protocol: 'https',
hostname: 'images.eventpeppers.com',
pathname: '/**'
},
{
protocol: 'https',
hostname: 'api.dicebear.com',
pathname: '/**'
}
],
},
async headers() {
return [
{
source: '/(.*)',
headers: [
{ key: 'Permissions-Policy', value: 'geolocation=(), microphone=(), camera=()' },
],
},
];
},
};
export default nextConfig;