37 lines
951 B
TOML
37 lines
951 B
TOML
# Configuración de Netlify para Dashboard JIRA
|
|
|
|
[build]
|
|
# Comando para compilar el proyecto (si usas un build tool)
|
|
# command = "npm run build"
|
|
# publish = "dist"
|
|
|
|
# Si NO tienes build tool, comenta lo anterior
|
|
|
|
# Redireccionar /api/* a las funciones Netlify
|
|
[[redirects]]
|
|
from = "/api/*"
|
|
to = "/.netlify/functions/:splat"
|
|
status = 200
|
|
|
|
# Redireccionar todas las demás rutas a index.html (SPA)
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "/index.html"
|
|
status = 200
|
|
|
|
# Configuración de funciones Netlify
|
|
[functions]
|
|
# Ruta donde están las funciones
|
|
directory = "netlify/functions"
|
|
# Bundler para Node.js
|
|
node_bundler = "esbuild"
|
|
|
|
# Headers para CORS y cache
|
|
[[headers]]
|
|
for = "/.netlify/functions/*"
|
|
[headers.values]
|
|
Access-Control-Allow-Origin = "*"
|
|
Access-Control-Allow-Methods = "GET, POST, OPTIONS"
|
|
Access-Control-Allow-Headers = "Content-Type"
|
|
Cache-Control = "s-maxage=3600, stale-while-revalidate=86400"
|