import { withBotId } from "botid/next/config"; import type { NextConfig } from "next"; const basePath = "/demo"; const nextConfig: NextConfig = { basePath, assetPrefix: "/demo-assets", env: { NEXT_PUBLIC_BASE_PATH: basePath, NEXTAUTH_URL: `http://localhost${basePath}/api/auth`, }, cacheComponents: true, images: { remotePatterns: [ { hostname: "avatar.vercel.sh", }, { protocol: "https", //https://nextjs.org/docs/messages/next-image-unconfigured-host hostname: "*.public.blob.vercel-storage.com", }, ], }, }; export default withBotId(nextConfig);