feat: 后端初始化
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[build]
|
||||
command = "npm run build"
|
||||
functions = "netlify/functions"
|
||||
|
||||
[functions]
|
||||
node_bundler = "esbuild"
|
||||
external_node_modules = ["@prisma/client", "@prisma/adapter-neon", "@neondatabase/serverless", "ws"]
|
||||
|
||||
[[headers]]
|
||||
for = "/.netlify/functions/*"
|
||||
[headers.values]
|
||||
Access-Control-Allow-Origin = "*"
|
||||
Access-Control-Allow-Headers = "Content-Type, Authorization"
|
||||
Access-Control-Allow-Methods = "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
||||
Reference in New Issue
Block a user