serverless-aws-static-file-handler
serverless-aws-static-file-handler copied to clipboard
The 404 error page renders literal {errorText}
Expected behavior:
The 404 result presents the actual internal error text in development environments
Actual behavior:
Literal {errorText}
is rendered which is a bit less than useful for debugging purposes.
Steps to fix the problem:
In async responseAsError(errorText, statusCode)
replace
<body>
{{errorText}}
</body>
with
<body>
${errorText}
</body>
or similar.
thanks for reporting this one. I'd be grateful for a PR to help fix this one!