webprodigies / plura-production

https://plura-production.vercel.app
1.38k stars 667 forks source link

404 error in all the routes #5

Closed absolutemadla8 closed 5 months ago

absolutemadla8 commented 5 months ago

Every route is giving error 404 : This page could not be found.

Screenshot 2024-02-02 at 12 02 58 PM

Maybe something to do with shadcn.

swarajbachu commented 5 months ago

just put these values in .env

NEXT_PUBLIC_URL=http://localhost:3000 NEXT_PUBLIC_DOMAIN=localhost:3000 NEXT_PUBLIC_SCHEME=http://

Suryanandx commented 5 months ago

This didn’t work @swarajbachu . Any other fixes ? Screenshot 2024-02-03 at 21 10 40

I have the same error even after setting up everything

absolutemadla8 commented 5 months ago

@Suryanandx I fixed it by removing afterAuth and customDomain functions from middleware.ts

swarajbachu commented 5 months ago

This didn’t work @swarajbachu . Any other fixes ? Screenshot 2024-02-03 at 21 10 40

I have the same error even after setting up everything

try adding error.tsx and make sure you have all your env varibales removing afterAuth would fix it, but will not redirect you as expeceted