为什么必须为 Netlify 构建指定发布目录?
Why do you have to specify the publish directory for a Netlify build?
文档说:https://docs.netlify.com/configure-builds/overview/
Publish directory: Directory (relative to the root of your repo) that contains the deploy-ready HTML files and assets generated by the build. If a base directory has been specified, it should be included in the publish directory path. For example, if your base directory is set to site, the publish directory should include the site/ prefix like so: site/public. Visit the common configurations doc to learn about typical settings for popular tools and architectures.
我的问题是,我为什么要关心目录应该是什么?不都是在某处自动生成的吗?!
文档说:https://docs.netlify.com/configure-builds/overview/
Publish directory: Directory (relative to the root of your repo) that contains the deploy-ready HTML files and assets generated by the build. If a base directory has been specified, it should be included in the publish directory path. For example, if your base directory is set to site, the publish directory should include the site/ prefix like so: site/public. Visit the common configurations doc to learn about typical settings for popular tools and architectures.
我的问题是,我为什么要关心目录应该是什么?不都是在某处自动生成的吗?!