404 error on link test and authentication required on health check

Strange part is it was working a couple days ago but now nothing works I have deployed and redeployed even rebuilt the project from scratch but nothing. 404 errors when I click link in vercel and authentication errors when I use curl to test the health after deployment. Lost show nothing at all. I saw link that said moving index.js to an api folder might help but that did nothing.

this is my vercel.json file: {
“version”: 2,
“name”: “clickuplink-auth”,
“builds”: [
{
“src”: “api/index.js”,
“use”: “@vercel/node”
}
],
“routes”: [
{
“src”: “/health”,
“dest”: “/api/health”
},
{
“src”: “/auth/callback”,
“dest”: “/api/auth/callback”
},
{
“src”: “/(.*)”,
“dest”: “index.js”
}
]
}

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

I tried all the “solved” options nothing seems to work… I think I am just going to try out Netify. If that fails too maybe I will be try again.

Hi @amgamer, welcome to the Vercel Community!

I’m sorry that you were facing this issue. Can you share the URL you are trying to open? From description it sounds like you are opening a preview deployment with deployment protection on that’s why Vercel auth is required.

Also, can you share the project repository so I can take a look at what could be the reason?