Files
turingflow-blog-002/next.config.mjs
“dongming” 400b1177c0 first commit
2025-12-19 12:19:14 +08:00

21 lines
453 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** @type {import('next').NextConfig} */
// 如需部署到子路径(如 GitHub Pages设置 basePath
// 例如const basePath = "/your-repo-name";
const basePath = "";
const nextConfig = {
// output: "export", // 静态导出模式,部署时取消注释
basePath,
assetPrefix: basePath,
images: {
unoptimized: true,
},
trailingSlash: true,
env: {
NEXT_PUBLIC_BASE_PATH: basePath,
},
};
export default nextConfig;