Error 500 on direct domain access (non www or subdomain)

I have an issue where my site got error 500 if I use direct domain like mydomain.com , but working fine with www.mydomain.com or subdomain.mydomain.com . I'm using "@sidebase/nuxt-auth": "^0.7.2" for the authentication . Working fine on localhost, only on production .
[GET] "https://mydomain.com/api/auth/session?callbackUrl=https:%2F%mydomain.com%2F": <no response> fetch failed
[GET] "https://mydomain.com/api/auth/session?callbackUrl=https:%2F%mydomain.com%2F": <no response> fetch failed
I'm using nginx for proxy pass to my app on production proxy_pass http://localhost:3000/; . The domain is managed by cloudflare , with their free ssl certificate .. Is it nuxt or nuxt-auth issue ? or nginx or cloudflare related issue ?
1 Reply
numbani
numbani7mo ago
this looks somehow similar to my issue. https://discord.com/channels/473401852243869706/1248695285052473494 do you get an error when you build and preview?
Want results from more Discord servers?
Add your server