Files
decolua--9router/gitbook/next.config.mjs
T
wehub-resource-sync 05fcd08057
Deploy GitBook to 9router.github.io / build-deploy (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:21:01 +08:00

25 lines
516 B
JavaScript

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;