9router / gitbook /next.config.mjs
2api
feat: configurable stream stall timeout + per-provider UI
88c4c60
Raw
History Blame Contribute Delete
516 Bytes
import { fileURLToPath } from "node:url";
import { dirname } from "node:path";
/** @type {import('next').NextConfig} */
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "";
const projectRoot = dirname(fileURLToPath(import.meta.url));
const nextConfig = {
output: "export",
basePath,
assetPrefix: basePath || undefined,
trailingSlash: true,
images: {
unoptimized: true
},
turbopack: {
root: projectRoot
},
env: {
NEXT_PUBLIC_BASE_PATH: basePath
}
};
export default nextConfig;