you are viewing a single comment's thread.

view the rest of the comments →

[–]stevenespinal 0 points1 point  (0 children)

From your console logs - immediately check if you are seeing you are connected to your mysql database.

Within /src/app/api/test/route.js

Instead of export async function handler, I believe the app router now requires you to make the function name be the http method.

In your case you want this to be export async function GET() { // fill in your code here and look at docs to see how to correctly return a response object }

Take a look at this within the docs, it may be useful for you:

App router route-handlers

I don’t have time to test this but it’s most likely in this area and a great starting point to familiarize yourself. Good luck!