| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- const config = {
- experimental: {
- useCache: true,
- reactCompiler: true,
- },
- reactStrictMode: true,
- pageExtensions: ["ts", "tsx", "mdx"],
- logging: {
- fetches: {
- fullUrl: true,
- },
- },
- turbopack: {
- rules: {
- "*.svg": {
- loaders: ["@svgr/webpack"],
- as: "*.js",
- },
- },
- },
- webpack(config) {
- config.module.rules.push({
- test: /\.svg$/i,
- use: ["@svgr/webpack"],
- });
- return config;
- },
- headers: async () => [
- {
- source: "/:path*",
- headers: [
- {
- key: "X-XSS-Protection",
- value: "1; mode=block",
- },
- {
- key: "Referrer-Policy",
- value: "strict-origin-when-cross-origin",
- },
- {
- key: "Strict-Transport-Security",
- value: "max-age=2592000",
- },
- {
- key: "X-Content-Type-Options",
- value: "nosniff",
- },
- {
- key: "Permissions-Policy",
- value:
- "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
- },
- ],
- },
- ],
- };
- export default config;
|