next.config.mjs 409 B

12345678910111213141516171819
  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. },
  12. async redirects() {
  13. return JSON.parse(fs.readFileSync('./redirects.json'))
  14. },
  15. }
  16. export default withContentlayer(nextConfig)