- 添加环境变量配置(.env, .env.dev, .env.test, .env.prod) - 添加Docker配置(.dockerignore) - 添加Nginx部署配置(nginx.conf) - 添加Netlify部署配置(netlify.toml) - 添加HTML入口文件(index.html)
18 lines
264 B
TOML
18 lines
264 B
TOML
[build]
|
|
publish = "dist"
|
|
command = "vite build --mode prod"
|
|
|
|
[build.environment]
|
|
NODE_VERSION = "20"
|
|
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "/index.html"
|
|
status = 200
|
|
|
|
[[headers]]
|
|
for = "/manifest.webmanifest"
|
|
|
|
[headers.values]
|
|
Content-Type = "application/manifest+json"
|