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

No indication of cause when dev deployment is broken #7464

Open
JakobJingleheimer opened this issue Feb 2, 2025 · 7 comments
Open

No indication of cause when dev deployment is broken #7464

JakobJingleheimer opened this issue Feb 2, 2025 · 7 comments

Comments

@JakobJingleheimer
Copy link
Member

URL:

https://nodejs-5gs7cwzc2-openjs.vercel.app/en/learn/typescript/publishing-a-ts-project

Browser Name:

Brave

Browser Version:

1.73.105

Operating System:

macOS

How to reproduce the issue:

When a page can't be generated, the server returns a 500 with no information whatsoever for what went wrong. In a non-production environment, it should include the error that triggered the 500.

Shit happened. Good luck
@AugustinMauroy
Copy link
Member

Wath did you receive on terminal ?

@JakobJingleheimer
Copy link
Member Author

Nothing because I don't run it locally; there's no need to do aside from working around this issue.

@AugustinMauroy
Copy link
Member

it's not dev env it's vercel preview right ?

@JakobJingleheimer
Copy link
Member Author

Right. So in vercel, set NODE_ENV to "preview" or something, no?

@AugustinMauroy
Copy link
Member

Right. So in vercel, set NODE_ENV to "preview" or something, no?

No, if you do npm run dev on local you I'll get error on your terminal.
If it's a preview of vercel, it's a preview, maybe there's a log on vercel. But I don't have access to that.

@JakobJingleheimer
Copy link
Member Author

Yes, I understand how to get it when running locally, which I never need to do except when the preview deployment blows up and refuses to tell me what's wrong.

An article editor never needs to run things locally—it's just a markdown file. Article editors maybe need not even be technical, so expecting them to install a bunch of deps, get a local up and running, etc is needlessly onerous.

There's got to be a way to capture the error and return it. IIR, this is the default Next.js error page, which is augmentable. In non-prod, even a rsp.send(500, error) would be a big improvement.

@AugustinMauroy
Copy link
Member

An article editor never needs to run things locally—it's just a markdown file. Article editors maybe need not even be technical, so expecting them to install a bunch of deps, get a local up and running, etc is needlessly onerous.

I agree with you.

@ovflowd ovflowd added help wanted and removed bug labels Feb 4, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Node.js Website Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants