i'm using page routing and it's working fine on local environment and not working on vercel.
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I'm using page routing and it's working fine on local env. but after deploying it to vercel it throws 404 error and i haven't touch vercel configs. Any solution anyone ?
Attached is how my folder structure looks like
Thanks in advance !
Attached is how my folder structure looks like
Thanks in advance !
14 Replies
Hi! have you tried building it locally and running it ?
Spectacled bearOP
@Max Yes locally (in dev mode and in prod build) is working absolutely fine
@Spectacled bear Are you using environment variables and forgot to add them on Vercel? Check the Vercel log to see the errors.
Spectacled bearOP
@Nelson Nope i'm not using any environment variables. Neither on dev nor on vercel(prod)
@Spectacled bear Without any logs or error messages, it's hard to debug. Can you provide any codes?
Spectacled bearOP
This is my directory structure
I've created this route, which is also not working i.e. same 404 error on vercel but working fine on local builds
I tried, and it's working as expected.
https://1159386890630336523.vercel.app/newone/dynamic-page
https://1159386890630336523.vercel.app/newone/dynamic-page
@Spectacled bear Can you provide a GitHub repo or reproduction so that I can debug it?
Spectacled bearOP
https://social-circle-frontend.vercel.app/verifyEmail/asd
here is the live URL, project is in private repo
here is the live URL, project is in private repo
Can we get on a call i'll show you the application. if possible please ?
Show the code of
verifyEmail/[param].jsxSpectacled bearOP