2026-03-04 19:20:57 +00:00
|
|
|
import { withBotId } from "botid/next/config";
|
2026-03-02 15:06:22 +00:00
|
|
|
import type { NextConfig } from "next";
|
2024-10-23 12:21:30 -04:00
|
|
|
|
2026-03-13 23:39:12 +00:00
|
|
|
const isDemo = process.env.IS_DEMO === "1";
|
|
|
|
|
const basePath = isDemo ? "/demo" : "";
|
2026-02-23 08:26:37 -08:00
|
|
|
|
2024-10-23 12:21:30 -04:00
|
|
|
const nextConfig: NextConfig = {
|
2026-03-13 23:39:12 +00:00
|
|
|
...(isDemo && { basePath, assetPrefix: "/demo-assets" }),
|
2026-02-23 08:26:37 -08:00
|
|
|
env: {
|
|
|
|
|
NEXT_PUBLIC_BASE_PATH: basePath,
|
|
|
|
|
},
|
2025-11-29 13:21:34 +00:00
|
|
|
cacheComponents: true,
|
2024-10-23 12:21:30 -04:00
|
|
|
images: {
|
2024-10-24 16:35:51 -04:00
|
|
|
remotePatterns: [
|
|
|
|
|
{
|
2025-09-21 11:02:31 -07:00
|
|
|
hostname: "avatar.vercel.sh",
|
2024-10-24 16:35:51 -04:00
|
|
|
},
|
2025-11-01 01:15:51 +01:00
|
|
|
{
|
|
|
|
|
protocol: "https",
|
|
|
|
|
//https://nextjs.org/docs/messages/next-image-unconfigured-host
|
|
|
|
|
hostname: "*.public.blob.vercel-storage.com",
|
|
|
|
|
},
|
2024-10-24 16:35:51 -04:00
|
|
|
],
|
2024-10-23 12:21:30 -04:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-04 19:20:57 +00:00
|
|
|
export default withBotId(nextConfig);
|