Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextjs (app router) fails on vercel #4315

Closed
authentiqdigital opened this issue Mar 25, 2024 · 1 comment
Closed

nextjs (app router) fails on vercel #4315

authentiqdigital opened this issue Mar 25, 2024 · 1 comment
Labels
kind/bug Something isn't working status/done

Comments

@authentiqdigital
Copy link

What is the problem?

Repo: https://github.com/authentiqagency/next-blitz-auth.git

Project is running locally, with build and serve. But deployed on vercel, it just works for me with blitz 2.0.4 / next 13.5.4

Simple working example, deployed on vercel, first commit "working" with
"blitz 2.0.4; next 13.5.4"

Vercel deploys failed with following configurations

"blitz 2.0.5; next 13.5.4"
Blitz Error-Page Showing.
vercel log:
Error: Usage of useAuthenticatedBlitzContext is supported only in next.js 13.0.0 and above. Please upgrade your next.js version. at /var/task/.next/server/chunks/303.js:474:18140 at Generator.next (<anonymous>) at /var/task/.next/server/chunks/303.js:474:15871 at new Promise (<anonymous>) at __async$1 (/var/task/.next/server/chunks/303.js:474:15618) at getBlitzContext (/var/task/.next/server/chunks/303.js:474:17625) at /var/task/.next/server/chunks/303.js:474:18593 at Generator.next (<anonymous>) at /var/task/.next/server/chunks/303.js:474:15871 at new Promise (<anonymous>)

"blitz 2.0.5; next 14.1.4"
500-Internal Server Error. App not showing
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { digest: '298443861', page: '/de' }

Paste all your error logs here:

Error: Usage of `useAuthenticatedBlitzContext` is supported only in next.js 13.0.0 and above. Please upgrade your next.js version.
    at /var/task/.next/server/chunks/303.js:474:18140
    at Generator.next (<anonymous>)
    at /var/task/.next/server/chunks/303.js:474:15871
    at new Promise (<anonymous>)
    at __async$1 (/var/task/.next/server/chunks/303.js:474:15618)
    at getBlitzContext (/var/task/.next/server/chunks/303.js:474:17625)
    at /var/task/.next/server/chunks/303.js:474:18593
    at Generator.next (<anonymous>)
    at /var/task/.next/server/chunks/303.js:474:15871
    at new Promise (<anonymous>)

[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
  digest: '298443861',
  page: '/de'
}

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?

Run blitz -v and paste the output here:

PASTE_HERE (leave the ``` marks)

Please include below any other applicable logs and screenshots that show your problem:

No response

@authentiqdigital authentiqdigital added kind/bug Something isn't working status/triage labels Mar 25, 2024
@gengjiawen
Copy link
Contributor

duplicate of #4303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/done
Projects
Status: Done
Development

No branches or pull requests

4 participants