You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When visiting a non-existent page (404) in production, the page flickers continuously, suggesting an infinite redirect loop. The browser console shows the following error:
Server Error: NEXT_NOT_FOUND
at PayloadRedirects (webpack-internal:///(rsc)/./src/components/PayloadRedirects/index.tsx:34:69)
This issue only appears in production mode. In development mode, the error is displayed in the console, but the 404 page loads correctly without flickering.
Reproduction Steps
Use the latest website template.
Seed the database.
Remove the seed page redirect in [slug]/page.tsx.
Visit any non-existent page in production mode.
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered:
I'm able to reproduce your issue consistently by building (via npm run build) the app and navigating to a page I know doesn't exist - triggering the 404.
I'm attaching a video of the current behavior. I haven't deployed this application, it's currently running on my local windows machine however I'm able to reproduce your issue with both mongodb and the postgres adapter. I've attached a video of the issue. Looking at console logs indicates it's an RSC problem.
Link to reproduction
No response
Environment Info
Describe the Bug
When visiting a non-existent page (404) in production, the page flickers continuously, suggesting an infinite redirect loop. The browser console shows the following error:
This issue only appears in production mode. In development mode, the error is displayed in the console, but the 404 page loads correctly without flickering.
Reproduction Steps
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: