This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web/next.config.js

22 lines
407 B
JavaScript

const links = require("./data/links.json");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
async redirects() {
return links
.filter((link) => !!link.hrefalias)
.map((link) =>
link.hrefalias.map((source) => ({
source,
destination: link.href,
permanent: false,
}))
)
.flat();
},
};
module.exports = nextConfig;