Open LVSSandeepKumar opened 2 months ago
hey did you find the solution?
plz let me know when you find one
I have moved on from the project. I won't try to find a solution.
@amol1211 @LVSSandeepKumar
Bro Redirect Logic is Working perfectly fine , you just have to do some setup,
In the video, he hard coded the domain name, so you have to first create a env variable name =
VITE_BASE_URL=http://localhost:5173
and then manually locate all hard coded domain names and replace it with a vaible name -
const baseUrl = import.meta.env.VITE_BASE_URL;
${baseUrl}/${link}
Like this everywhere in project.
When deployed on vercel or netlify or render, the redirect link is not working. The response is error 404 from server.
As of what I understood from my research through chatgpt and google is these platforms require a html file for each route or page. I created an empty div for the '/:id' route and yet it is not working....
I desperately need such a eye-catching project in my portfolio, so please try to fix it.
Thank you.