forked from laoshuikaixue/VoiceHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
31 lines (25 loc) · 921 Bytes
/
netlify.toml
File metadata and controls
31 lines (25 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[build]
command = "pnpm run netlify-build"
publish = "dist"
[build.environment]
NODE_VERSION = "20"
[functions]
node_bundler = "esbuild"
# 增加内存限制和超时时间
[functions."server"]
included_files = ["app/drizzle/**/*"]
external_node_modules = []
node_bundler = "esbuild"
# Nuxt 会在 dist/_redirects 中自动生成重定向规则,将请求转发到 Netlify Functions
[[headers]]
for = "/_nuxt/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[template.environment]
DATABASE_URL = "Neon数据库连接字符串,格式如:postgresql://username:password@host:port/database?sslmode=require"
JWT_SECRET = "JWT令牌签名密钥,建议使用强随机字符串"
REDIS_URL = "Redis缓存服务(可选,用于提升性能)"