Deploying 1st site FrontEnd and Backend

So I am trying to deploy my first react site, these are my Env variables

Backend
PORT=5000
MONGODB_URI=mongodb+srv://familymatters blah blah blah
JWT_SECRET=your-super-secret-key-change-in-production
NODE_ENV=development

Email Configuration (Development)

EMAIL_HOST=mail. Domain
EMAIL_PORT=465
EMAIL_USER=blah blah
EMAIL_PASSWORD=blah blah blah
EMAIL_FROM=noreply@familysync.com

Frontend URL

FRONTEND_URL=http://localhost:3000

So when I deploy i get someting running on port 5000. i removed the lines with the prot 5000 in but then i just see

"message": "Route not found",
"method": "GET",
"url": "/",
"availableRoutes": [
    "/api/auth/*",
    "/api/admin/*",
    "/api/family/*",
    "/api/events/*",
    "/api/appointments/*"
]

}

Thanks in advance for help

Your backend and frontend are not running on the same service (or shouldn’t be), so the frontend address will not be localhost.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.