DEV Community

Cover image for How to Fix Vercel 404 error: Child URL Path Issues

How to Fix Vercel 404 error: Child URL Path Issues

David Bilson on October 11, 2023

Vercel is a popular hosting platform for front-end applications, offering various deployment and hosting features. Deploying a React app to Vercel ...
Collapse
 
lovatom profile image
lovatom

Same here...

Although I am building a project without any framework at the moment (pure vanilla for now), I did add the vercel.json file to my project folder with the suggested code but I keep running into the same issue.

When checking the logs in Vercel, I only get this info:

Image description

Any help would be appreciated :)

Collapse
 
hassanabuya82 profile image
Hassan

it still hasen't work in my case

Collapse
 
lovatom profile image
lovatom

okay I finally managed to solve the issue in my case and the solution:
I just had to update my initial home page name to index.html (previously my homepage was named differently), and it seems like vercel need this index file (as mentioned in this page: vercel.com/docs/edge-network/direc... )

Maybe it's the same for you?

Collapse
 
rezaprtma391 profile image
Reza Pratama

I've done that, is the file outside the folder?

Collapse
 
blazzed profile image
Alexandr Sekerin

Thx!

Collapse
 
david_bilsonn profile image
David Bilson

Were you able to solve the issue?