first commit
This commit is contained in:
20
next.config.mjs
Normal file
20
next.config.mjs
Normal file
@@ -0,0 +1,20 @@
|
||||
/** @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;
|
||||
Reference in New Issue
Block a user