day one
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user