← 所有代码文件

netlify.toml

Netlify 构建设置和 SPA 重定向。

[build]
  command = "npm run build"
  publish = "dist"

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

关于此工具

Netlify 构建设置和 SPA 重定向。

开箱即用的 netlify.toml——查看内容、复制,或以正确的文件名下载。免费,100% 在浏览器中运行。