const nextConfig = {
assetPrefix: "/home/",
basePath: "/home",
};
添加子目录需要设置assetPrefix,basePath
需要执行下面的命令,然后启动
next build
next export
next start
const nextConfig = {
assetPrefix: "/home/",
basePath: "/home",
};
添加子目录需要设置assetPrefix,basePath
需要执行下面的命令,然后启动
next build
next export
next start