next.config.mjs 406 B

123456789101112131415161718
  1. import { withContentlayer } from "next-contentlayer"
  2. import fs from 'fs-extra'
  3. /** @type {import('next').NextConfig} */
  4. const nextConfig = {
  5. reactStrictMode: false,
  6. images: {
  7. domains: ["avatars.githubusercontent.com"],
  8. },
  9. experimental: {
  10. appDir: true
  11. },
  12. async redirects() {
  13. return JSON.parse(fs.readFileSync('./redirects.json'))
  14. },
  15. }
  16. export default withContentlayer(nextConfig)