From e04da14366319bcff355bfbadff6a7678c4114b3 Mon Sep 17 00:00:00 2001 From: Rahul Nailoo Date: Thu, 16 Oct 2025 22:34:11 +0530 Subject: [PATCH] fix font rendering reference designators --- next.config.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 4ef4976..709c5f5 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,31 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - rewrites() { + async rewrites() { return { fallback: [ + // Allow Next.js to serve its own assets (JS chunks, fonts, etc.) + { + source: "/_next/:path*", + destination: "/_next/:path*", + }, + // Allow any static assets placed in the public folder (e.g. fonts) + { + source: "/:static(fonts|images|static)/:path*", + destination: "/:static/:path*", + }, + { + source: "/favicon.ico", + destination: "/favicon.ico", + }, + { + source: "/robots.txt", + destination: "/robots.txt", + }, + { + source: "/sitemap.xml", + destination: "/sitemap.xml", + }, + // Fallback all other requests to the API handler { source: "/", destination: "/api",