feat: add LinkResult, Pagination, and StatsCards components; implement server actions for link management and global stats retrieval

This commit is contained in:
Puechberty Arthur
2026-03-30 19:28:58 +02:00
parent 4ede5021b1
commit f95587fc7a
46 changed files with 4224 additions and 177 deletions
+49 -1
View File
@@ -1,7 +1,55 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
compress: true,
poweredByHeader: false,
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "X-Content-Type-Options",
value: "nosniff",
},
{
key: "X-Frame-Options",
value: "DENY",
},
{
key: "X-XSS-Protection",
value: "1; mode=block",
},
{
key: "Referrer-Policy",
value: "strict-origin-when-cross-origin",
},
{
key: "Permissions-Policy",
value: "camera=(), microphone=(), geolocation=()",
},
],
},
{
source: "/manifest.json",
headers: [
{
key: "Cache-Control",
value: "public, max-age=604800, immutable",
},
],
},
];
},
async redirects() {
return [
{
source: "/index",
destination: "/",
permanent: true,
},
];
},
};
export default nextConfig;