Help Api Rest fetch deploy not found status 404
Unanswered
Blue Bunting posted this in #help-forum
Blue BuntingOP
Good morning, I'm telling you my problem to see if you can help me.
I am making an application that connects to a database on another server and I have created the api/letreros/route.ts folder in my app folder where I make the connection and query my database. in my server component when I do the fetch ami api I get a 404 error when I deploy to vercel, but in my local it works wonderfully, I have tried everything and set the correct environment variables, and set the IP to the server of database that they asked me for, I don't know what else to do. please help me 😥
I am making an application that connects to a database on another server and I have created the api/letreros/route.ts folder in my app folder where I make the connection and query my database. in my server component when I do the fetch ami api I get a 404 error when I deploy to vercel, but in my local it works wonderfully, I have tried everything and set the correct environment variables, and set the IP to the server of database that they asked me for, I don't know what else to do. please help me 😥
7 Replies
Blue BuntingOP
ðŸ˜
help me !
Transvaal lion
@Blue Buntingis that ur server component
or client
Blue BuntingOP
hello
yes is my server component
The database connection I am making is wrong, I am using digital ocean in my database and the mysql2 library for next.js.