Hi,
Thanks for publishing this. I just noticed that an error doc is in the pipeline.ts here:
|
websiteErrorDocument: 'error.html', |
This results in a 404 page for the error.html page when a non-existent URL is accessed like: http://pipeline-files8e6940b8-tyzn4y41xz9l.s3-website-us-east-1.amazonaws.com/non-existant.html
When hosting an SPA the error document should be set to index.html so that the JS can show a 404 (and maybe report an error to the crash logger)
Hi,
Thanks for publishing this. I just noticed that an error doc is in the pipeline.ts here:
cra-pipeline/infra/stacks/pipeline.ts
Line 21 in 3a5d1aa
This results in a 404 page for the error.html page when a non-existent URL is accessed like: http://pipeline-files8e6940b8-tyzn4y41xz9l.s3-website-us-east-1.amazonaws.com/non-existant.html
When hosting an SPA the error document should be set to
index.htmlso that the JS can show a 404 (and maybe report an error to the crash logger)