next.config.mjs 426 B

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