2026-03-25 13:42:28 +01:00
|
|
|
import type { NextConfig } from "next";
|
2026-04-20 16:29:58 +01:00
|
|
|
import { env } from "@/lib/env";
|
2026-03-25 13:42:28 +01:00
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-03-25 15:02:03 +01:00
|
|
|
output: "standalone",
|
2026-03-25 14:32:19 +01:00
|
|
|
images: {
|
|
|
|
|
remotePatterns: [
|
|
|
|
|
{
|
|
|
|
|
protocol: "https",
|
|
|
|
|
hostname: "images.unsplash.com",
|
|
|
|
|
pathname: "/**",
|
|
|
|
|
},
|
2026-04-10 21:12:03 +01:00
|
|
|
{
|
|
|
|
|
protocol: 'https',
|
|
|
|
|
hostname: 'i.ytimg.com', // NOVO: Adicionado para as thumbnails do YouTube
|
|
|
|
|
},
|
2026-03-25 14:32:19 +01:00
|
|
|
],
|
|
|
|
|
},
|
2026-04-19 02:33:07 +01:00
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: "/api/:path*",
|
2026-04-20 16:29:58 +01:00
|
|
|
destination: env.API_URL+"/:path*",
|
2026-04-19 02:33:07 +01:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
2026-03-25 13:42:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|