Feat : Gitbook

This commit is contained in:
decolua
2026-05-11 11:50:24 +07:00
parent 7ad538bcf2
commit fd92af77a0
124 changed files with 34154 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
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;