This commit is contained in:
2022-12-10 23:58:09 +01:00
parent 29da22d579
commit acda284da1
25 changed files with 799 additions and 111 deletions

View File

@@ -1,7 +1,21 @@
const { links } = require("./data/config.json");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
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
module.exports = nextConfig;