Deming

Results 13 comments of Deming

@fydy 因为我默认的 `.gitignore` 文件中忽略掉了 `config/index.js`,所以你在上传 git 仓库的时候是没有把配置文件上传上去的。 你可以修改 `.gitignore`,也可以本地 build 后部署到服务器上。一般来讲在前端工作流中都使用第二种方式。

你部署的地址是哪里呢?

一般来讲博客都不是次级页面吧。。。 你这样需要改一个参数:`config/paths.js` 的第 33 行。改为: ``` const servedUrl = envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : './') ```