mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
22 lines
420 B
TypeScript
22 lines
420 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const imageBaseUrl = process.env.TMDB_IMAGE_BASE_URL || "";
|
|
const imageHost = imageBaseUrl
|
|
? new URL(imageBaseUrl).hostname
|
|
: "image.tmdb.org";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
reactCompiler: true,
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: imageHost,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|