This repository has been archived by the owner on May 3, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(sendHtml): allow custom error page #281
feat(sendHtml): allow custom error page #281
Changes from 4 commits
fc5dac6
ca9c4b9
f5cf78f
1f7ab1f
4dd32a5
ac9861e
08b889b
9a8837f
c1979aa
42d298b
11474c0
d8c0913
d5c7d6c
a49d566
94ec8bc
a4f5e4c
6317bac
bb942f8
0437396
f8d6728
8a34066
7f13c1f
2952ba3
3e40ccb
80fbad3
fdcbeb4
0832a9d
9ec77d6
cb31684
b126f42
18c3d9e
49d646a
9189e24
040bd9c
65e3b64
353a35c
4c8aeb8
2447f53
fca02b5
5f79399
5c5d4da
99d68ad
7ae46ee
2d8d7ac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
is it possible to have this custom too? especially with internationalization?
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.
Possibly in another PR, this PR is just to allow a custom error page.
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.
this is meant to be the final catch all. we can not add anything that could risk an error being thrown here.
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.
can we provide, a default option?
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.
Ideally if they wanted a custom message they would just use a custom error page 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.
IIRC, we will need to have this environment variable validated alongside the other env variables.
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.
https://github.com/americanexpress/one-app/blob/master/src/server/config/env/runTime.js