This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
Open
Description
Hi, I was trying to use this template to serve SPA files. I was following the article https://www.openfaas.com/blog/serverless-single-page-app/ . It works well except for images and I suspect for contents such as pdf. I tried modifying the template to use express' sendFile()
and setting the right Content-Type
and it works with that. However, I was not able to succeed sending files with either end()
or pipe()
. If there is an alternative without modifying the template, please let me know. Based on the suggestion, I can also make a pull request to correct the issue. Thanks in advance.
Metadata
Assignees
Labels
No labels