Kuma/next.config.ts
Rajpreet0 409421d452 fix: allow staging Supabase storage domain for image optimization
Adds the staging project's storage hostname to images.remotePatterns
so uploaded avatars/course images resolve on the Vercel preview
deployment. Production hostname stays as-is.
2026-07-29 18:05:26 +02:00

30 lines
749 B
TypeScript

import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
const nextConfig: NextConfig = {
allowedDevOrigins: ["192.168.2.111", "192.168.2.64", "192.168.178.26", "192.168.178.178"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.dicebear.com",
},
{
protocol: "https",
hostname: "dlvlsahpuahlymvemzkl.supabase.co",
},
{
protocol: "https",
hostname: "pyxjpsalchmnlyqfnzfw.supabase.co",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
],
},
};
export default withNextIntl(nextConfig);