Next.js hosted by Firebase webframework returned a 404 error
October 29, 2023
I encountered an issue where Next.js returned a 404 error when I tried to open Dynamic Routing pages directly.
After some troubleshooting, I discovered the solution lay in using the App Router instead of the Pages Router, as detailed in the Next.js documentation.
The migration process wasn't straightforward, but I consider myself fortunate that my private projects had only five pages.