chatbot-template/next.config.ts

43 lines
846 B
TypeScript
Raw Normal View History

import { withBotId } from "botid/next/config";
import type { NextConfig } from "next";
2024-10-23 12:21:30 -04:00
const basePath = "/demo";
2026-02-23 08:26:37 -08:00
2024-10-23 12:21:30 -04:00
const nextConfig: NextConfig = {
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,
devIndicators: false,
poweredByHeader: false,
reactCompiler: true,
logging: {
fetches: {
fullUrl: false,
},
incomingRequests: false,
},
2024-10-23 12:21:30 -04:00
images: {
remotePatterns: [
{
hostname: "avatar.vercel.sh",
},
{
protocol: "https",
hostname: "*.public.blob.vercel-storage.com",
},
],
2024-10-23 12:21:30 -04:00
},
experimental: {
prefetchInlining: true,
cachedNavigations: true,
appNewScrollHandler: true,
inlineCss: true,
turbopackFileSystemCacheForDev: true,
},
2024-10-23 12:21:30 -04:00
};
export default withBotId(nextConfig);