next.config.mjs 452 B

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