mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 21:41:17 +00:00
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.
30 lines
749 B
TypeScript
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);
|