next.config.js 329 B

1234567891011121314151617
  1. /** @type {import('next').NextConfig} */
  2. const nextConfig = {
  3. reactStrictMode: true,
  4. swcMinify: true,
  5. async rewrites() {
  6. return {
  7. fallback: [
  8. {
  9. source: "/api/:path*",
  10. destination: `https://novels.yergoo.com/api/:path*`,
  11. },
  12. ],
  13. };
  14. },
  15. };
  16. module.exports = nextConfig;