| 1 | import type { NextConfig } from "next"; |
| 2 | |
| 3 | const securityHeaders = [ |
| 4 | { key: "X-Frame-Options", value: "DENY" }, |
| 5 | { key: "X-Content-Type-Options", value: "nosniff" }, |
| 6 | { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }, |
| 7 | { key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()" }, |
| 8 | { key: "Strict-Transport-Security", value: "max-age=63072000; includeSubDomains" }, |
| 9 | ]; |
| 10 | |
| 11 | const nextConfig: NextConfig = { |
| 12 | experimental: { |
| 13 | serverActions: { |
| 14 | bodySizeLimit: "16mb", |
| 15 | }, |
| 16 | }, |
| 17 | transpilePackages: [ |
| 18 | "@stepping/api", |
| 19 | "@stepping/db", |
| 20 | "@stepping/types", |
| 21 | "@stepping/config", |
| 22 | "@stepping/ui", |
| 23 | ], |
| 24 | async headers() { |
| 25 | return [{ source: "/:path*", headers: securityHeaders }]; |
| 26 | }, |
| 27 | }; |
| 28 | |
| 29 | export default nextConfig; |