basir / next-pg-shadcn-ecommerce

https://next-pg-shadcn-ecommerce.vercel.app
27 stars 7 forks source link

404 error after deployment #6

Closed wpkindle closed 1 week ago

wpkindle commented 1 week ago

After deployment, I'm getting 404 error on these pages

/api/auth/signin /product/[slug]

basir commented 1 week ago

I can't reproduce this error in this repo. share your repo to take a look. also in which lesson do you get this error?

wpkindle commented 1 week ago

https://github.com/wpkindle/wp-kindle

basir commented 1 week ago

I cloned your repo and it works when I click on Sign In button on header menu. send your .env.local over email to replicate your env. email:basir.jafarzadeh@gmail.com

wpkindle commented 1 week ago

it is working fine on localhost, the issue raise only on vercel

basir commented 1 week ago

I see. you need to set this on vercel: AUTH_SECRET=v7a59n6HN3COWeporDl4lxfKkL7UPkvVHOu0FDUetjA= find project on vercel -> setting -> env variables -> add above item.

wpkindle commented 1 week ago

done, thank you so much again