Capital/next.config.mjs

27 lines
612 B
JavaScript
Raw Normal View History

2024-02-24 16:07:11 +00:00
import mdx from "@next/mdx";
2024-02-24 09:33:35 +00:00
/** @type {import("next").NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
images: {
remotePatterns: [
{
protocol: "https",
2024-02-24 16:07:11 +00:00
hostname: "**"
}
]
2024-02-24 10:54:47 +00:00
},
async rewrites() {
return [
{ source: "/rss", destination: "/feed" },
{ source: "/rss.xml", destination: "/feed.xml" },
{ source: "/feed.xml", destination: "/feed" },
2024-02-24 13:56:35 +00:00
{ source: "/p/:id", destination: "/posts/:id" },
2024-02-24 16:07:11 +00:00
{ source: "/i/:id", destination: "/information/:id" }
2024-02-24 10:54:47 +00:00
];
2024-02-24 16:07:11 +00:00
}
2024-02-24 09:33:35 +00:00
};
2024-02-24 06:16:57 +00:00
2024-02-24 16:07:11 +00:00
export default mdx()(nextConfig);