500 internal server error on home page even after successful build and deploy

next js version 13.4.19
The app works on vercel
the git repo is GitHub - dhiraj-02/RedBITS-SEM
Tried repdeploying without cache still same

build log
3:36:25 PM: $ npm run build
3:36:25 PM: > reddit-clone@0.1.0 build
3:36:25 PM: > next build
3:36:25 PM: - warn No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
3:36:26 PM: - info Creating an optimized production build…
3:36:46 PM: - info Compiled successfully
3:36:46 PM: - info Linting and checking validity of types…
3:36:51 PM: - info Collecting page data…
3:37:03 PM: - info Generating static pages (0/28)
3:37:03 PM: - info Generating static pages (7/28)
3:37:03 PM: - info Generating static pages (14/28)
3:37:04 PM: - info Generating static pages (21/28)
3:37:05 PM: - info Generating static pages (28/28)
3:37:06 PM: - info Finalizing page optimization…
3:37:06 PM: Route (app) Size First Load JS
3:37:06 PM: ┌ λ / 2.03 kB 141 kB
3:37:06 PM: ├ λ /(.)sign-in 2.97 kB 109 kB
3:37:06 PM: ├ λ /(.)sign-up 2.97 kB 109 kB
3:37:06 PM: ├ λ /api/auth/[…nextauth] 0 B 0 B
3:37:06 PM: ├ λ /api/chat 0 B 0 B
3:37:06 PM: ├ λ /api/chat/messages 0 B 0 B
3:37:06 PM: ├ λ /api/chat/new 0 B 0 B
3:37:06 PM: ├ λ /api/comments 0 B 0 B
3:37:06 PM: ├ λ /api/getmysubreddits 0 B 0 B
3:37:06 PM: ├ ○ /api/gettopsubreddits 0 B 0 B
3:37:06 PM: ├ λ /api/link 0 B 0 B
3:37:06 PM: ├ λ /api/posts 0 B 0 B
3:37:06 PM: ├ λ /api/search 0 B 0 B
3:37:06 PM: ├ λ /api/searchuser 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/post/comment 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/post/comment/vote 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/post/create 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/post/vote 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/subscribe 0 B 0 B
3:37:06 PM: ├ λ /api/subreddit/unsubscribe 0 B 0 B
3:37:06 PM: ├ λ /api/uploadthing 0 B 0 B
3:37:06 PM: ├ λ /api/username 0 B 0 B
3:37:06 PM: ├ λ /r/[slug] 1.96 kB 150 kB
3:37:06 PM: ├ λ /r/[slug]/post/[postId] 4 kB 146 kB
3:37:06 PM: ├ λ /r/[slug]/submit 4.92 kB 131 kB
3:37:06 PM: ├ λ /r/chat 3.74 kB 135 kB
3:37:06 PM: ├ λ /r/create 4.97 kB 125 kB
3:37:06 PM: ├ λ /settings 4.26 kB 142 kB
3:37:06 PM: ├ λ /sign-in 2.81 kB 109 kB
3:37:06 PM: └ λ /sign-up 2.81 kB 109 kB
3:37:06 PM: + First Load JS shared by all 78.9 kB
3:37:06 PM: ├ chunks/596-4816d802971f1dcb.js 26.1 kB
3:37:06 PM: ├ chunks/fd9d1056-99211ac086cf2ef3.js 50.6 kB
3:37:06 PM: ├ chunks/main-app-ffa0262e5d03297e.js 219 B
3:37:06 PM: └ chunks/webpack-d9df6bbca36ae037.js 2 kB
3:37:06 PM: Route (pages) Size First Load JS
3:37:06 PM: ─ ○ /404 181 B 81 kB
3:37:06 PM: + First Load JS shared by all 80.8 kB
3:37:06 PM: ├ chunks/framework-8883d1e9be70c3da.js 45 kB
3:37:06 PM: ├ chunks/main-e9afd783f8290a25.js 33.6 kB
3:37:06 PM: ├ chunks/pages/_app-52924524f99094ab.js 195 B
3:37:06 PM: └ chunks/webpack-d9df6bbca36ae037.js 2 kB
3:37:06 PM: ƒ Middleware 58 kB
3:37:06 PM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
3:37:06 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
3:37:06 PM: ​
3:37:06 PM: (build.command completed in 41s)
3:37:06 PM: NextAuth package detected, setting NEXTAUTH_URL environment variable to https://redbits.netlify.app
3:37:06 PM: Moving static page files to serve from CDN…
3:37:06 PM: Moved 2 files to CDN
3:37:06 PM: You are not using Netlify Edge Functions for image format detection. Set env var “NEXT_FORCE_EDGE_IMAGES=true” to enable.
3:37:06 PM: :sparkles: Deploying middleware and functions to Netlify Edge Functions :sparkles:
3:37:06 PM: ​
3:37:06 PM: Functions bundling
3:37:06 PM: ────────────────────────────────────────────────────────────────
3:37:06 PM: ​
3:37:06 PM: Packaging Functions from .netlify/functions-internal directory:
3:37:06 PM: - ___netlify-handler/___netlify-handler.js
3:37:06 PM: - ___netlify-odb-handler/___netlify-odb-handler.js
3:37:06 PM: - _ipx/_ipx.js
3:37:06 PM: ​
3:37:30 PM: ​
3:37:30 PM: (Functions bundling completed in 23.3s)
3:37:30 PM: ​
3:37:30 PM: Edge Functions bundling
3:37:30 PM: ────────────────────────────────────────────────────────────────
3:37:30 PM: ​
3:37:30 PM: Packaging Edge Functions from .netlify/edge-functions directory:
3:37:30 PM: - next_src_middleware
3:37:35 PM: ​
3:37:35 PM: (Edge Functions bundling completed in 5.2s)
3:37:35 PM: Next.js cache saved.
3:37:35 PM: :test_tube: Thank you for testing “appDir” support on Netlify. For known issues and to give feedback, visit Using the Next 13 `app` directory on Netlify · opennextjs/opennextjs-netlify · Discussion #1724 · GitHub
3:37:35 PM: ​
3:37:43 PM: (Netlify Build completed in 1m 27.3s)
3:37:43 PM: mise /opt/build/repo/.mise.toml tools: python@3.8.20
3:38:11 PM: Section completed: building
3:38:20 PM: Finished processing build request in 2m40.525s

Hi @dhiraj-02,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Were you able to resolve the issue? Visiting the domain: redbits.netlify.app it is resolving without any errors:

Could you let us know if you’re still having issues and if you are, please provide steps to reproduce. Thanks!

Actually I was facing 307 infinite google Oauth on nextjs 13.4.9 so I had changed the version to 13.4.19 which caused 500 internal server error I just rolled back the version now I have this 307 issue

Next js 13.4.9
307 infinite google Oauth
Even when I am signed in when I try to do something it’s prompting to sign in again

Nextjs 13.4.19
500 internal server error

I’m not seeing any issues when I navigate to redbits.netlify.app. Could you tell us how to reproduce this issue?