Files
loldle/next.config.mjs
T
tiennm99 52d6b03c23 fix: make basePath configurable via NEXT_PUBLIC_BASE_PATH env var
Enables platform-agnostic deployment — GitHub Pages sets the env var
in CI, while Vercel/Netlify/local dev default to root path.
2026-04-04 12:24:39 +07:00

11 lines
206 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "",
images: {
unoptimized: true,
},
};
export default nextConfig;