feature: Revamp and full rebuild

This commit is contained in:
mbaharip
2023-09-11 04:42:02 +07:00
parent d6f42b0c83
commit b36b1964d4
140 changed files with 7901 additions and 7615 deletions
+32 -4
View File
@@ -1,6 +1,34 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
module.exports = nextConfig
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
options: {
// If you use remark-gfm, you'll need to use next.config.mjs
// as the package is ESM only
// https://github.com/remarkjs/remark-gfm#install
remarkPlugins: [],
rehypePlugins: [],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: "@mdx-js/react",
},
});
const nextConfig = {
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
reactStrictMode: true,
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "Cache-Control",
value: "max-age=300, s-maxage=300, stale-while-revalidate, public",
},
],
},
];
},
};
module.exports = withMDX(nextConfig);