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, }, cacheComponents: true, devIndicators: false, poweredByHeader: false, reactCompiler: true, logging: { fetches: { fullUrl: false, }, incomingRequests: false, }, images: { remotePatterns: [ { hostname: "avatar.vercel.sh", }, { protocol: "https", hostname: "*.public.blob.vercel-storage.com", }, ], }, experimental: { prefetchInlining: true, cachedNavigations: true, appNewScrollHandler: true, inlineCss: true, turbopackFileSystemCacheForDev: true, }, }; export default withBotId(nextConfig);