-
Notifications
You must be signed in to change notification settings - Fork 900
feat: Add static error page #4276
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
site/static/error.html
Outdated
<h1>502 - Bad Gateway</h1> | ||
<p>No service is running on port 3000. Make sure your process is running and try again.</p> | ||
<div class="button-group"> | ||
<button id="retry">Retry</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this button be dynamic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably. I think this is something that Go template can handle right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, controlled by .Error.RetryEnabled
Added the go template variables and made a few changes:
|
Uh oh!
There was an error while loading. Please reload this page.