diff --git a/dashboard/vercel.json b/dashboard/vercel.json new file mode 100644 index 0000000..9e13e47 --- /dev/null +++ b/dashboard/vercel.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "regions": ["bom1"], + "headers": [ + { + "source": "/(.*)", + "headers": [ + { "key": "X-Frame-Options", "value": "DENY" }, + { "key": "X-Content-Type-Options", "value": "nosniff" }, + { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }, + { + "key": "Permissions-Policy", + "value": "camera=(), microphone=(), geolocation=()" + } + ] + }, + { + "source": "/api/(.*)", + "headers": [ + { "key": "Cache-Control", "value": "no-store, max-age=0" } + ] + } + ], + "redirects": [ + { + "source": "/app", + "destination": "/dashboard", + "permanent": false + } + ] +} diff --git a/infra/vercel.json b/infra/vercel.json index 77b0b93..4298930 100644 --- a/infra/vercel.json +++ b/infra/vercel.json @@ -3,7 +3,7 @@ "buildCommand": "pnpm --filter dashboard build", "outputDirectory": "dashboard/.next", "framework": "nextjs", - "regions": ["iad1"], + "regions": ["bom1"], "headers": [ { "source": "/(.*)",