#AI SAAS Platform

29 messages · Page 1 of 1 (latest)

stone axle
#

When i tried to run my app in prod after completing upto 3.3 hrs im getting this weird error from clerk when im trying to access any public route

#

It is working fine in the localhost tho

#
 
export default authMiddleware({
  publicRoutes: ['/', '/api/webhooks/clerk', '/api/webhooks/stripe']
});

export const config = {
  matcher: ["/((?!.+.[w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
};```
#

my middleware code

potent crown
#

user clerk version ^4.29.6

stone axle
#

I'm using 4.29.6

potent crown
#

Maybe you are already signed in?

#

Sign out ig

I have finished this project yesterday so yeah

stone axle
#

I tried signing out

stone axle
potent crown
#

It didn't have any errors
Except i couldn't _id as key

So i had to use publicId

stone axle
#

Ooh ok

#

So is your middleware's code same ?

stone axle
potent crown
#

Wait

stone axle
#

Hey great work btw

#

I tried your app and it crashes when I clicked on buy now button of credits

potent crown
#

Oh that's coz indian users have to wait for stripe

Waiting period can't do anything about that

Or maybe its for everyone idk

stone axle
#

Oooh,how much time ?

potent crown
stone axle
#

Ah ok

potent crown
#

Btw you can clone js mastery's repo and prolly use it as a reference while doing your project 🤔 if you keep running in errors

stone axle
#

Ya ok

#

Hey so ig i solved the err,i just now tried logging in in my mobile in prod and Its working fine

#

Ig the issue was whenever I was trying to login in prod there was a session open in localhost

hasty forge
#

help