Skip to content

Conversation

b1ff
Copy link
Contributor

@b1ff b1ff commented Jul 20, 2022

Now customer can specify its own error page if default is not suitable. Also default error page now is a valid HTML and more pretty than just text.

Now customer can specify its own error page if default is not suitable. Also default error page now is a valid HTML and more pretty than just text.
@b1ff b1ff requested review from blackrabbit99 and ALjean July 20, 2022 13:22
const staticFilePath = config.get('staticError.disasterFileContentPath');
try {
if (staticFilePath != null) {
this.#staticFileContent = readFileSync(staticFilePath).toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why sync ?
Maybe it makes sence serve it from memory ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is an idea. It is put into memory on first read

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are welcome, can you approve PR?)

@b1ff b1ff requested a review from yehor-manzhula July 20, 2022 13:52
@blackrabbit99 blackrabbit99 self-requested a review July 21, 2022 10:14
@b1ff b1ff merged commit 7750961 into master Jul 21, 2022
@b1ff b1ff deleted the feature/allow-to-specify-default-error-page branch July 21, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants