Files

53 lines
1.0 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
poweredByHeader: false,
images: {
formats: ["image/avif", "image/webp"],
minimumCacheTTL: 2592000,
remotePatterns: [
{
protocol: 'https',
hostname: 'media.ayris.tech',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'img.youtube.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: '**.fbcdn.net',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: '**.cdninstagram.com',
port: '',
pathname: '/**',
},
],
},
async rewrites() {
return [
{
source: '/api/st',
destination: 'https://panel.ayris.tech/api/analytics/collect',
},
];
},
};
export default nextConfig;