fix: add beforeFiles to rewrites config

This commit is contained in:
Apple
2025-12-01 04:07:59 -08:00
parent 6ebdaac25d
commit d8ab32b59f

View File

@@ -13,6 +13,8 @@ const nextConfig: NextConfig = {
return { return {
// beforeFiles rewrites are checked before pages/public files // beforeFiles rewrites are checked before pages/public files
beforeFiles: [],
// afterFiles rewrites are checked after pages/public files
// and after Next.js API routes - so API routes will work // and after Next.js API routes - so API routes will work
afterFiles: [ afterFiles: [
// Nodes API (public endpoints) // Nodes API (public endpoints)